[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
This commit is contained in:
Uday Bondhugula 2021-11-22 16:22:41 +05:30
parent d7d7ffe254
commit 8bd08a9fd7
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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<PrintOpPass> {
class PrintOpPass : public ViewOpGraphBase<PrintOpPass> {
public:
PrintOpPass(raw_ostream &os) : os(os) {}
PrintOpPass(const PrintOpPass &o) : PrintOpPass(o.os.getOStream()) {}