Adopt Properties in builtin dialect
authorMehdi Amini <joker.eph@gmail.com>
Mon, 5 Jun 2023 08:27:02 +0000 (01:27 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 5 Jun 2023 08:27:20 +0000 (01:27 -0700)
This was missed when the other dialects adopted it.

Reviewed By: rriddle

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

mlir/include/mlir/IR/BuiltinDialect.td
mlir/include/mlir/IR/BuiltinOps.h

index c131107..4abf6cf 100644 (file)
@@ -23,6 +23,7 @@ def Builtin_Dialect : Dialect {
   let cppNamespace = "::mlir";
   let useDefaultAttributePrinterParser = 0;
   let useDefaultTypePrinterParser = 0;
+  let usePropertiesForAttributes = 1;
   let extraClassDeclaration = [{
   private:
     // Register the builtin Attributes.
index 8abe4ca..1c31ef3 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef MLIR_IR_BUILTINOPS_H_
 #define MLIR_IR_BUILTINOPS_H_
 
+#include "mlir/Bytecode/BytecodeOpInterface.h"
 #include "mlir/IR/OpImplementation.h"
 #include "mlir/IR/OwningOpRef.h"
 #include "mlir/IR/RegionKindInterface.h"