[PATCH] D142148: [MLIR] Add LocationAttr declarations to ODS
Andrew Young via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 20 11:52:39 PST 2023
youngar updated this revision to Diff 490933.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142148/new/
https://reviews.llvm.org/D142148
Files:
include/mlir/IR/OpBase.td
Index: include/mlir/IR/OpBase.td
===================================================================
--- include/mlir/IR/OpBase.td
+++ include/mlir/IR/OpBase.td
@@ -1084,6 +1084,9 @@
let convertFromStorage = fromStorage;
}
+def LocationAttr : Attr<CPred<"$_self.isa<::mlir::LocationAttr>()">,
+ "location attribute">;
+
def BoolAttr : Attr<CPred<"$_self.isa<::mlir::BoolAttr>()">, "bool attribute"> {
let storageType = [{ ::mlir::BoolAttr }];
let returnType = [{ bool }];
@@ -1483,6 +1486,9 @@
Attr elementAttr = element;
}
+def LocationArrayAttr : TypedArrayAttrBase<LocationAttr,
+ "location array attribute">;
+
def AffineMapArrayAttr : TypedArrayAttrBase<AffineMapAttr,
"AffineMap array attribute"> {
let constBuilderCall = "$_builder.getAffineMapArrayAttr($0)";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142148.490933.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/c940e2cc/attachment.bin>
More information about the llvm-commits
mailing list