summaryrefslogtreecommitdiff
path: root/mlir
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-04-21 01:13:20 -0600
committerMehdi Amini <joker.eph@gmail.com>2023-05-15 15:36:16 -0700
commiteddcf480f51548c923e400d1d5e80fcde60bfc6f (patch)
treeee2c9a3aa112d9fc0fc772e503176de8dd7fe94d /mlir
parent407b4648b870a62f8a4f81fa3e2b53f761a51fee (diff)
downloadllvm-eddcf480f51548c923e400d1d5e80fcde60bfc6f.tar.gz
Adopt Properties to store operations inherent Attributes in the Transform dialect
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148938
Diffstat (limited to 'mlir')
-rw-r--r--mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td1
-rw-r--r--mlir/test/Dialect/Transform/ops-invalid.mlir2
2 files changed, 2 insertions, 1 deletions
diff --git a/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td b/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td
index f034f3a277f5..160f1ff6ec62 100644
--- a/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td
+++ b/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td
@@ -24,6 +24,7 @@ def Transform_Dialect : Dialect {
];
let hasOperationAttrVerify = 1;
+ let usePropertiesForAttributes = 1;
let extraClassDeclaration = [{
/// Name of the attribute attachable to the symbol table operation
diff --git a/mlir/test/Dialect/Transform/ops-invalid.mlir b/mlir/test/Dialect/Transform/ops-invalid.mlir
index ec98c6def563..988743e93ef5 100644
--- a/mlir/test/Dialect/Transform/ops-invalid.mlir
+++ b/mlir/test/Dialect/Transform/ops-invalid.mlir
@@ -350,7 +350,7 @@ module attributes { transform.with_named_sequence } {
transform.sequence failures(suppress) {
^bb0(%arg0: !transform.any_op):
// expected-error @below {{requires attribute 'target'}}
- "transform.include"() {failure_propagation_mode = 0} : () -> ()
+ "transform.include"() {failure_propagation_mode = 1 : i32} : () -> ()
}
}