================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to