[Mlir-commits] [mlir] d476ece - Adopt Properties in builtin dialect

Mehdi Amini llvmlistbot at llvm.org
Mon Jun 5 01:27:43 PDT 2023


Author: Mehdi Amini
Date: 2023-06-05T01:27:20-07:00
New Revision: d476ece573ef2aec56da70b76f2b315da3234a32

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

LOG: Adopt Properties in builtin dialect

This was missed when the other dialects adopted it.

Reviewed By: rriddle

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/BuiltinDialect.td b/mlir/include/mlir/IR/BuiltinDialect.td
index c131107634b44..4abf6cfccd79c 100644
--- a/mlir/include/mlir/IR/BuiltinDialect.td
+++ b/mlir/include/mlir/IR/BuiltinDialect.td
@@ -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.

diff  --git a/mlir/include/mlir/IR/BuiltinOps.h b/mlir/include/mlir/IR/BuiltinOps.h
index 8abe4cae0d80f..1c31ef32324f5 100644
--- a/mlir/include/mlir/IR/BuiltinOps.h
+++ b/mlir/include/mlir/IR/BuiltinOps.h
@@ -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"


        


More information about the Mlir-commits mailing list