[Mlir-commits] [mlir] 788b9e9 - Adopt Properties to store operations inherent Attributes in the Index dialect
Mehdi Amini
llvmlistbot at llvm.org
Tue May 9 17:31:27 PDT 2023
Author: Mehdi Amini
Date: 2023-05-10T01:30:59+01:00
New Revision: 788b9e9b656b3917b3b914b7e8517c1843b8e9ec
URL: https://github.com/llvm/llvm-project/commit/788b9e9b656b3917b3b914b7e8517c1843b8e9ec
DIFF: https://github.com/llvm/llvm-project/commit/788b9e9b656b3917b3b914b7e8517c1843b8e9ec.diff
LOG: Adopt Properties to store operations inherent Attributes in the Index dialect
This is part of an on-going migration to adopt Properties inside MLIR.
Differential Revision: https://reviews.llvm.org/D148890
Added:
Modified:
mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
mlir/include/mlir/Dialect/Index/IR/IndexOps.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td b/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
index be0fea79ee392..afb2c6302e40d 100644
--- a/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
+++ b/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
@@ -83,6 +83,7 @@ def IndexDialect : Dialect {
let hasConstantMaterializer = 1;
let useDefaultAttributePrinterParser = 1;
+ let usePropertiesForAttributes = 1;
}
#endif // INDEX_DIALECT
diff --git a/mlir/include/mlir/Dialect/Index/IR/IndexOps.h b/mlir/include/mlir/Dialect/Index/IR/IndexOps.h
index d8debfb731323..2f1ab42964bb2 100644
--- a/mlir/include/mlir/Dialect/Index/IR/IndexOps.h
+++ b/mlir/include/mlir/Dialect/Index/IR/IndexOps.h
@@ -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"
More information about the Mlir-commits
mailing list