From 8bd08a9fd705dce07d7cd76711532432b575ed78 Mon Sep 17 00:00:00 2001 From: Uday Bondhugula Date: Mon, 22 Nov 2021 16:22:41 +0530 Subject: [PATCH] [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 --- mlir/include/mlir/Transforms/Passes.td | 2 +- mlir/lib/Transforms/ViewOpGraph.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/Transforms/Passes.td b/mlir/include/mlir/Transforms/Passes.td index df06c0bb6532..0dede70b3b87 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 044136c454bd..365779494e48 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()) {}