[clang] [CIR] Add cir.coro.suspend intrinsic (PR #228310)
Morris Hafner via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 7 08:50:35 PDT 2026
================
@@ -5137,6 +5137,32 @@ def CIR_CoroSizeOp : CIR_CoroIntrinsicOp<"size", (ins),
let llvmOp = "CoroSizeOp";
}
+//===----------------------------------------------------------------------===//
+// Coroutine intrinsic SuspendOp
+//===----------------------------------------------------------------------===//
+
+def CIR_CoroSuspendOp : CIR_CoroIntrinsicOp<"suspend",
+ (ins Token:$id, CIR_AnyBoolType: $final),
----------------
mmha wrote:
It's better to rename `<id>` to `save` to match the LLVM docs. LLVM uses `<id>` when the token has to come from `coro.id`. This is not the case here.
https://github.com/llvm/llvm-project/pull/228310
More information about the cfe-commits
mailing list