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

Reply via email to