[Mlir-commits] [mlir] acf603b - [mlir][ods] Save the Enum info in EnumAttr
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Mar 4 13:59:20 PST 2022
Author: Mogball
Date: 2022-03-04T21:59:14Z
New Revision: acf603b94720190fbe7d2ea0b297a6bb43627a39
URL: https://github.com/llvm/llvm-project/commit/acf603b94720190fbe7d2ea0b297a6bb43627a39
DIFF: https://github.com/llvm/llvm-project/commit/acf603b94720190fbe7d2ea0b297a6bb43627a39.diff
LOG: [mlir][ods] Save the Enum info in EnumAttr
Added:
Modified:
mlir/include/mlir/IR/EnumAttr.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/EnumAttr.td b/mlir/include/mlir/IR/EnumAttr.td
index ba0b0cfb36d47..8f45d1f42ecd6 100644
--- a/mlir/include/mlir/IR/EnumAttr.td
+++ b/mlir/include/mlir/IR/EnumAttr.td
@@ -69,6 +69,9 @@ class EnumAttr<Dialect dialect, EnumAttrInfo enumInfo, string name = "",
: AttrDef<dialect, enumInfo.className, traits> {
let summary = enumInfo.summary;
+ // The backing enumeration.
+ EnumAttrInfo enum = enumInfo;
+
// Inherit the C++ namespace from the enum.
let cppNamespace = enumInfo.cppNamespace;
More information about the Mlir-commits
mailing list