| commit | a72d0303005a0ba8388cf616b5f7d6a193009d76 | [log] [tgz] |
|---|---|---|
| author | Scott Todd <scotttodd@google.com> | Fri Oct 15 09:32:05 2021 -0700 |
| committer | GitHub <noreply@github.com> | Fri Oct 15 09:32:05 2021 -0700 |
| tree | aff41d138e1f17df5845c51a349ea41a05d2ae88 | |
| parent | 1cc4e6668f227c2c9f0d757342a7882fca4cb8ee [diff] |
Register -view-op-graph pass with IREE tools. (#7358) This is used to print Graphviz DOT files for modules (for visualization and debugging). Using this pass from `mlir-opt` throws errors when IREE-specific dialects are encountered. References: * [documentation](https://mlir.llvm.org/docs/Passes/#-view-op-graph-print-graphviz-visualization-of-an-operation) * [mlir/include/mlir/Transforms/Passes.td](https://github.com/llvm/llvm-project/blob/26b675d65eb2d1f117a39eee965652f590373232/mlir/include/mlir/Transforms/Passes.td#L695-L709) * [mlir/lib/Transforms/ViewOpGraph.cpp](https://github.com/llvm/llvm-project/blob/main/mlir/lib/Transforms/ViewOpGraph.cpp)
diff --git a/iree/tools/init_mlir_passes.h b/iree/tools/init_mlir_passes.h index c30c384..281b6fc 100644 --- a/iree/tools/init_mlir_passes.h +++ b/iree/tools/init_mlir_passes.h
@@ -46,6 +46,7 @@ registerAffineScalarReplacementPass(); registerParallelLoopCollapsingPass(); registerPrintOpStatsPass(); + registerViewOpGraphPassPass(); registerStripDebugInfoPass(); registerSymbolDCEPass();