Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/lib/Dialect/Test/TestAttrDefs.td')
-rw-r--r--mlir/test/lib/Dialect/Test/TestAttrDefs.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/mlir/test/lib/Dialect/Test/TestAttrDefs.td b/mlir/test/lib/Dialect/Test/TestAttrDefs.td
index c4996abf9b27..145d02161bf1 100644
--- a/mlir/test/lib/Dialect/Test/TestAttrDefs.td
+++ b/mlir/test/lib/Dialect/Test/TestAttrDefs.td
@@ -229,6 +229,14 @@ def TestAttrSelfTypeParameterFormat
let assemblyFormat = "`<` $a `>`";
}
+def TestAttrSelfTypeParameterStructFormat
+ : Test_Attr<"TestAttrSelfTypeParameterStructFormat", [TypedAttrInterface]> {
+ let parameters = (ins "int":$a, AttributeSelfTypeParameter<"">:$type);
+
+ let mnemonic = "attr_self_type_struct_format";
+ let assemblyFormat = "`<` struct(params) `>`";
+}
+
// Test overridding attribute builders with a custom builder.
def TestOverrideBuilderAttr : Test_Attr<"TestOverrideBuilder"> {
let mnemonic = "override_builder";