[clang] [CIR] Add SCF ResumeOp (PR #170042)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 17:13:22 PST 2025


================
@@ -898,6 +898,36 @@ def CIR_ContinueOp : CIR_Op<"continue", [Terminator]> {
   let hasLLVMLowering = false;
 }
 
+//===----------------------------------------------------------------------===//
+// Resume
+//===----------------------------------------------------------------------===//
+
+def CIR_SCFResumeOp : CIR_Op<"scf.resume", [
----------------
andykaylor wrote:

I think `cir.structured.resume` is sufficient, since it corresponds to the `resume` instruction in LLVM IR (and the `llvm.resume` operation), but I could live with `cir.structured.eh_resume` to give an extra bit of context.

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


More information about the cfe-commits mailing list