[PATCH] D72888: [mlir] Add baseAttr to TypedArrayAttrBase.

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 11:37:52 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGeec36909c18b: [mlir] Add baseAttr to TypedArrayAttrBase. (authored by abeakkas, committed by mehdi_amini).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72888/new/

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.239659.patch
Type: text/x-patch
Size: 394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/36d90401/attachment.bin>


More information about the llvm-commits mailing list