13 #ifndef MLIR_TRANSFORMS_VIEWOPGRAPH_H_ 14 #define MLIR_TRANSFORMS_VIEWOPGRAPH_H_ 17 #include "llvm/Support/GraphWriter.h" 18 #include "llvm/Support/raw_ostream.h" 23 template <
typename T>
class OpPassBase;
27 void viewGraph(Block &block,
const Twine &name,
bool shortNames =
false,
28 const Twine &title =
"",
29 llvm::GraphProgram::Name program = llvm::GraphProgram::DOT);
31 raw_ostream &
writeGraph(raw_ostream &os, Block &block,
bool shortNames =
false,
32 const Twine &title =
"");
35 std::unique_ptr<OpPassBase<ModuleOp>>
37 const Twine &title =
"");
41 #endif // MLIR_TRANSFORMS_VIEWOPGRAPH_H_ Definition: InferTypeOpInterface.cpp:20
std::unique_ptr< OpPassBase< ModuleOp > > createPrintOpGraphPass(raw_ostream &os=llvm::errs(), bool shortNames=false, const Twine &title="")
Creates a pass to print op graphs.
Definition: ViewOpGraph.cpp:160
raw_ostream & writeGraph(raw_ostream &os, Block &block, bool shortNames=false, const Twine &title="")
Definition: ViewOpGraph.cpp:154
void viewGraph(Block &block, const Twine &name, bool shortNames=false, const Twine &title="", llvm::GraphProgram::Name program=llvm::GraphProgram::DOT)
Definition: ViewOpGraph.cpp:149