[clang] [llvm] [mlir] [Coroutines] Add llvm.coro.where and drop return value of llvm.coro.end (PR #153404)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 14 18:53:42 PDT 2025


================
@@ -2117,6 +2118,30 @@ Example:
       %hdl.result = ... ; get address of returned coroutine handle
       ret ptr %hdl.result
 
+'llvm.coro.where' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+::
+
+  declare i1 @llvm.coro.where()
----------------
ChuanqiXu9 wrote:

I prefer a more explicit name. e.g., `llvm.coro.is_in_resume` or anything else.

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


More information about the cfe-commits mailing list