[clang] [CIR] Support for the handle-returning await_suspend (PR #240737)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 17:47:34 PST 2026
================
@@ -0,0 +1,35 @@
+// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu \
----------------
Andres-Salamanca wrote:
This test looks small 🙂 could you also check the wrapper signature/body (args, `from_address` on the frame, return) and the operands of `await.suspend.handle`? Also adding `CIR-FLAT`/`OGCG` RUN lines like in `coro-await-suspend-bool.cpp` would be great. If bool/void end up using the wrapper, please add them here as well.
Also, take a look at `clang/test/CodeGenCoroutines/coro-symmetric-transfer-0{2,3,4}.cpp` to see if any of those tests could be useful here.
https://github.com/llvm/llvm-project/pull/240737
More information about the cfe-commits
mailing list