[PATCH] D72888: [mlir] Add baseAttr to TypedArrayAttrBase.
Abdurrahman Akkas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 15:34:08 PST 2020
abeakkas created this revision.
Herald added subscribers: llvm-commits, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
abeakkas retitled this revision from "Add baseAttr to TypedArrayAttrBase." to "[mlir] Add baseAttr to TypedArrayAttrBase.".
Element type is useful in code generators but it is lost after construction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72888
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
@@ -1091,6 +1091,8 @@
"; })">]>,
description> {
let constBuilderCall = "$_builder.getArrayAttr($0)";
+
+ let baseAttr = element;
}
def I32ArrayAttr : TypedArrayAttrBase<I32Attr,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72888.238650.patch
Type: text/x-patch
Size: 394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/a655cfab/attachment.bin>
More information about the llvm-commits
mailing list