[clang] [CIR] Create cir.cleanup.scope operation (PR #178085)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 10:30:25 PST 2026
================
@@ -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
More information about the cfe-commits
mailing list