yuxuanchen1997 wrote: > What I prefer is to add a middle end function attribute (must-coro-elide) and > apply this attribute and (always inline attribute) to the calls:
Actually this might be problematic. The same coroutine called in different contexts (e.g. one coroutine that is also attributed, another is a coroutine that does not follow the semantics of the said attribute) can have different elidability. We need to attribute the actual emitted `CallInst`/`InvokeInst` from the `CallExpr` in FE. 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