Skip to content

Commit c8695ba

Browse files
committed
Revert "[mlir] Add baseAttr to TypedArrayAttrBase."
This reverts commit eec3690. This modeling is incorrect. baseAttr is intended for attribute decorators that are not backed by C++ attribute classes. It essentially says DerivedAttr isa BaseAttr, which is wrong for ArrayAttr classes. If one needs to store the element type, it should be stored as a separate filed in the tablegen class.
1 parent b482e1b commit c8695ba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/include/mlir/IR/OpBase.td

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

10981096
def I32ArrayAttr : TypedArrayAttrBase<I32Attr,

0 commit comments

Comments
 (0)