[Mlir-commits] [mlir] [MLIR][TableGen] Fix EnumAttr not recognized as enum in OpFormatGen (PR #189046)

Han-Chung Wang llvmlistbot at llvm.org
Fri Mar 27 09:32:57 PDT 2026


================
@@ -50,6 +51,29 @@ def CustomStringLiteralD : TestFormat_Op<[{
   custom<Foo>(prop-dict) attr-dict
 }]>;
 
+//===----------------------------------------------------------------------===//
+// EnumAttr formatting
+//===----------------------------------------------------------------------===//
+
+// Test that EnumAttr (backed by EnumInfo, not EnumAttrInfo) is recognized as
+// an enum attribute and uses the enum-keyword format path.
----------------
hanhanW wrote:

optional: I don't see a test case for `EnumAttrInfo`, do we also add one?

https://github.com/llvm/llvm-project/pull/189046


More information about the Mlir-commits mailing list