[Mlir-commits] [mlir] a6a7a1b - Fully qualify MLIR type in TableGen emitter

Mehdi Amini llvmlistbot at llvm.org
Fri Jun 2 14:08:39 PDT 2023


Author: Mehdi Amini
Date: 2023-06-02T14:07:56-07:00
New Revision: a6a7a1bae4e99f2a25f6c01ddc40c5c3b37b71f9

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

LOG: Fully qualify MLIR type in TableGen emitter

This is important for users that don't enclose their dialect within the MLIR
namespace.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
index a23975f96cb32..c1b4f2a2f10b3 100644
--- a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+++ b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
@@ -737,7 +737,7 @@ static const char *const dialectDynamicTypeParserDispatch = R"(
     if (parseResult.has_value()) {
       if (::mlir::succeeded(parseResult.getValue()))
         return genType;
-      return Type();
+      return ::mlir::Type();
     }
   }
 )";


        


More information about the Mlir-commits mailing list