================
@@ -1068,6 +1069,112 @@ def CIR_ScopeOp : CIR_Op<"scope", [
let hasLLVMLowering = false;
}
+//===----------------------------------------------------------------------===//
+// CleanupScopeOp
+//===----------------------------------------------------------------------===//
+
+def CIR_CleanupKind : CIR_I32EnumAttr<"CleanupKind", "cleanup kind", [
+ I32EnumAttrCase<"Normal", 1, "normal">,
+ I32EnumAttrCase<"EH", 2, "eh">,
+ I32EnumAttrCase<"All", 3, "all">
+]> {
+ let genSpecializedAttr = 0;
+}
+
+def CIR_CleanupKindAttr : CIR_EnumAttr<CIR_CleanupKind, "cleanup_kind"> {
----------------
AmrDeveloper wrote:
Should we move this to `CIRAttrs.td` 🤔
https://github.com/llvm/llvm-project/pull/178085
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits