[Mlir-commits] [mlir] [MLIR:LLVM] Add UWTableKind attribute (PR #135811)

Will Froom llvmlistbot at llvm.org
Tue Apr 15 09:40:10 PDT 2025


================
@@ -855,4 +855,27 @@ def ModFlagBehaviorAttr : LLVM_EnumAttr<
   let cppNamespace = "::mlir::LLVM";
 }
 
+//===----------------------------------------------------------------------===//
+// UWTableKind
+//===----------------------------------------------------------------------===//
+
+def UWTableKindNone
+    : LLVM_EnumAttrCase<"None", "none", "None", 0>;
+def UWTableKindSync
+    : LLVM_EnumAttrCase<"Sync", "sync", "Sync", 1>;
+def UWTableKindAsync
+    : LLVM_EnumAttrCase<"Async", "async", "Async", 2>;
+def UWTableKindDefault
+    : LLVM_EnumAttrCase<"Default", "default", "Default", 2>;
+
+// UWTableKindDefault is unsupported as the llvm enum value is the same as async  
+// which the generated enum converters can't deal with.
----------------
WillFroom wrote:

Not sure what the best way of dealing with this is, or if we are happy with this behavior (the issue is duplicate `case`s in the `switch` in the generated converter)

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


More information about the Mlir-commits mailing list