Skip to content

Commit eec3690

Browse files
Abdurrahman Akkasjoker-eph
authored andcommitted
[mlir] Add baseAttr to TypedArrayAttrBase.
Element type is useful in code generators but it is lost after construction. Differential Revision: https://reviews.llvm.org/D72888
1 parent 1b8eab1 commit eec3690

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/include/mlir/IR/OpBase.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,8 @@ class TypedArrayAttrBase<Attr element, string description>: ArrayAttrBase<
10911091
"; })">]>,
10921092
description> {
10931093
let constBuilderCall = "$_builder.getArrayAttr($0)";
1094+
1095+
let baseAttr = element;
10941096
}
10951097

10961098
def I32ArrayAttr : TypedArrayAttrBase<I32Attr,

0 commit comments

Comments
 (0)