From: Uday Bondhugula Date: Mon, 22 Nov 2021 10:52:41 +0000 (+0530) Subject: [MLIR] Remove duplicate `Pass` suffix from ViewOpGraph class name X-Git-Tag: upstream/15.0.7~24932 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bd08a9fd705dce07d7cd76711532432b575ed78;p=platform%2Fupstream%2Fllvm.git [MLIR] Remove duplicate `Pass` suffix from ViewOpGraph class name Remove duplicate `Pass` suffix from view-op-graph pass class name. The extra suffix would lead to methods like registerViewOpGraphPassPass being generated. Differential Revision: https://reviews.llvm.org/D114459 --- diff --git a/mlir/include/mlir/Transforms/Passes.td b/mlir/include/mlir/Transforms/Passes.td index df06c0b..0dede70 100644 --- a/mlir/include/mlir/Transforms/Passes.td +++ b/mlir/include/mlir/Transforms/Passes.td @@ -692,7 +692,7 @@ def SymbolDCE : Pass<"symbol-dce"> { let constructor = "mlir::createSymbolDCEPass()"; } -def ViewOpGraphPass : Pass<"view-op-graph"> { +def ViewOpGraph : Pass<"view-op-graph"> { let summary = "Print Graphviz visualization of an operation"; let description = [{ This pass prints a Graphviz graph of a module. diff --git a/mlir/lib/Transforms/ViewOpGraph.cpp b/mlir/lib/Transforms/ViewOpGraph.cpp index 044136c..3657794 100644 --- a/mlir/lib/Transforms/ViewOpGraph.cpp +++ b/mlir/lib/Transforms/ViewOpGraph.cpp @@ -68,7 +68,7 @@ public: /// This pass generates a Graphviz dataflow visualization of an MLIR operation. /// Note: See https://www.graphviz.org/doc/info/lang.html for more information /// about the Graphviz DOT language. -class PrintOpPass : public ViewOpGraphPassBase { +class PrintOpPass : public ViewOpGraphBase { public: PrintOpPass(raw_ostream &os) : os(os) {} PrintOpPass(const PrintOpPass &o) : PrintOpPass(o.os.getOStream()) {}