Adopt Properties to store operations inherent Attributes in the Index dialect
authorMehdi Amini <joker.eph@gmail.com>
Fri, 21 Apr 2023 06:29:34 +0000 (00:29 -0600)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 10 May 2023 00:30:59 +0000 (01:30 +0100)
This is part of an on-going migration to adopt Properties inside MLIR.

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

mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
mlir/include/mlir/Dialect/Index/IR/IndexOps.h

index be0fea7..afb2c63 100644 (file)
@@ -83,6 +83,7 @@ def IndexDialect : Dialect {
 
   let hasConstantMaterializer = 1;
   let useDefaultAttributePrinterParser = 1;
+  let usePropertiesForAttributes = 1;
 }
 
 #endif // INDEX_DIALECT
index d8debfb..2f1ab42 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef MLIR_DIALECT_INDEX_IR_INDEXOPS_H
 #define MLIR_DIALECT_INDEX_IR_INDEXOPS_H
 
+#include "mlir/Dialect/Index/IR/IndexAttrs.h"
 #include "mlir/IR/BuiltinTypes.h"
 #include "mlir/IR/OpDefinition.h"
 #include "mlir/IR/OpImplementation.h"