[clang] [llvm] [Clang][Coroutines] Introducing the `[[clang::coro_inplace_task]]` attribute (PR #94693)
Yuxuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 23:00:51 PDT 2024
yuxuanchen1997 wrote:
@ChuanqiXu9, I actually did the FE changes first and most of the FE logic are in `Sema` now. One question: there does not seem to be an obvious way to get the `llvm::CallBase` from `CodeGenFunction::EmitCallExpr`. I can only get the `llvm::Value *` for the return value then call `llvm::Value::users()` to find the call. Is there a better way to do this?
P.S. Name of the attribute is changed to `[[clang::coro_inplace_task]]`. I will try to do the Middle End changes as you suggested tomorrow and hopefully get rid of the `llvm.coro.safe.elide` intrinsic.
https://github.com/llvm/llvm-project/pull/94693
More information about the llvm-commits
mailing list