Skip to content

Commit acf603b

Browse files
committed
[mlir][ods] Save the Enum info in EnumAttr
1 parent 9d6c2ff commit acf603b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mlir/include/mlir/IR/EnumAttr.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class EnumAttr<Dialect dialect, EnumAttrInfo enumInfo, string name = "",
6969
: AttrDef<dialect, enumInfo.className, traits> {
7070
let summary = enumInfo.summary;
7171

72+
// The backing enumeration.
73+
EnumAttrInfo enum = enumInfo;
74+
7275
// Inherit the C++ namespace from the enum.
7376
let cppNamespace = enumInfo.cppNamespace;
7477

0 commit comments

Comments
 (0)