[Mlir-commits] [mlir] 1eded17 - [MLIR] Fix TableGen generator for attribute interfaces.

Alex Zinenko llvmlistbot at llvm.org
Tue Nov 24 05:06:44 PST 2020


Author: Ulysse Beaugnon
Date: 2020-11-24T14:06:35+01:00
New Revision: 1eded173a91d3bbfa283eacdabb191cd53dd49e5

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

LOG: [MLIR] Fix TableGen generator for attribute interfaces.

Use the correct interface base type name when generating attribute interfaces
with TabeGen.

Reviewed By: ftynse

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
index 1a8f6b78575b..77de47d8516c 100644
--- a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
@@ -108,7 +108,7 @@ struct AttrInterfaceGenerator : public InterfaceGenerator {
       : InterfaceGenerator(records.getAllDerivedDefinitions("AttrInterface"),
                            os) {
     valueType = "::mlir::Attribute";
-    interfaceBaseType = "AttrInterface";
+    interfaceBaseType = "AttributeInterface";
     valueTemplate = "ConcreteAttr";
     StringRef castCode = "(tablegen_opaque_val.cast<ConcreteAttr>())";
     nonStaticMethodFmt.addSubst("_attr", castCode).withSelf(castCode);


        


More information about the Mlir-commits mailing list