xakep8 wrote: > > .... I think we talked about this case before. IIRC you mentioned it'd be > > better if CIRGen didn't generate the wrapper as a separate function at this > > point, so future CIR analyses/optimizations don't need to go > > interprocedural to see what `await_suspend` does. > > Right, that's still my view. If CIRGen outlines await_suspend, anything that > runs on CIR has to look across functions to see what a suspend point does. > I'd keep the call inline in the cir.await suspend region, and create the > wrapper when CIRAwaitOpFlattening takes that region apart in FlattenCFG. Only > the llvm.coro.await.suspend.* intrinsics need it, and FlattenCFG is already > the step before LLVM. @xakep8 any questions?
No I agree with this as I myself have been looking around at this, just wasn't sure where to do the part of wrapper creation so I was digging around on this. Thanks for the clarification. https://github.com/llvm/llvm-project/pull/240737 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
