[Mlir-commits] [mlir] eff5406 - [mlir][nfc] Fully spell mlir typename in generated code.

Ivan Butygin llvmlistbot at llvm.org
Sat Oct 22 11:29:00 PDT 2022


Author: Ivan Butygin
Date: 2022-10-22T20:27:41+02:00
New Revision: eff54060f4c4087725fc331db95305c38f75da05

URL: https://github.com/llvm/llvm-project/commit/eff54060f4c4087725fc331db95305c38f75da05
DIFF: https://github.com/llvm/llvm-project/commit/eff54060f4c4087725fc331db95305c38f75da05.diff

LOG: [mlir][nfc] Fully spell mlir typename in generated code.

Differential Revision: https://reviews.llvm.org/D136534

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/OpFormatGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index 111cb0098c66f..fcfaf86f1229e 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -1742,7 +1742,7 @@ static void genCustomDirectiveParameterPrinter(FormatElement *element,
     if (var->isVariadic())
       body << name << "().getTypes()";
     else if (var->isOptional())
-      body << llvm::formatv("({0}() ? {0}().getType() : Type())", name);
+      body << llvm::formatv("({0}() ? {0}().getType() : ::mlir::Type())", name);
     else
       body << name << "().getType()";
 


        


More information about the Mlir-commits mailing list