diff --git a/mlir/tools/mlir-tblgen/OpDocGen.cpp b/mlir/tools/mlir-tblgen/OpDocGen.cpp --- a/mlir/tools/mlir-tblgen/OpDocGen.cpp +++ b/mlir/tools/mlir-tblgen/OpDocGen.cpp @@ -21,6 +21,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SetVector.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/ADT/StringRef.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/Regex.h" @@ -155,8 +156,9 @@ } static void emitOpDoc(const Operator &op, raw_ostream &os) { + // Print out the operation name and C++ class name. os << llvm::formatv("### `{0}` ({1})\n", op.getOperationName(), - op.getQualCppClassName()); + op.getCppClassName()); // Emit the summary, syntax, and description if present. if (op.hasSummary())