[PATCH] D142148: [MLIR] Add LocationAttr declarations to ODS
Andrew Young via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 16:54:04 PST 2023
youngar updated this revision to Diff 491560.
youngar added a comment.
Herald added a reviewer: antiagainst.
Herald added a project: MLIR.
My old patch was generated with `--no-prefix`, which seems to have confused phabricator, and lead to the CI failures.
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.491560.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230124/1b188b38/attachment.bin>
More information about the llvm-commits
mailing list