[PATCH] D142148: [MLIR] Add LocationAttr declarations to ODS
Andrew Young via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 21:08:19 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa2f71d2732d3: [MLIR] Add LocationAttr declarations to ODS (authored by youngar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142148/new/
https://reviews.llvm.org/D142148
Files:
mlir/include/mlir/IR/OpBase.td
Index: mlir/include/mlir/IR/OpBase.td
===================================================================
--- mlir/include/mlir/IR/OpBase.td
+++ mlir/include/mlir/IR/OpBase.td
@@ -1078,6 +1078,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 }];
@@ -1477,6 +1480,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.491596.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230124/b6f7290d/attachment.bin>
More information about the llvm-commits
mailing list