[llvm-branch-commits] [llvm] [LLVM][Coroutines] Create `.noalloc` variant of switch ABI coroutine ramp functions during CoroSplit (PR #99283)

Yuxuan Chen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Aug 7 23:03:02 PDT 2024


================
@@ -5,7 +5,7 @@
 define nonnull ptr @f(i32 %n) presplitcoroutine {
 ; CHECK-LABEL: @f(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[ID:%.*]] = call token @llvm.coro.id(i32 0, ptr null, ptr null, ptr @f.resumers)
+; CHECK-NEXT:    [[ID:%.*]] = call token @llvm.coro.id(i32 0, ptr null, ptr null, ptr @{{.*}})
----------------
yuxuanchen1997 wrote:

Other than the legacy `CoroElide`, the main purpose of this variable is to keep connection on the graph between the original copy and the `.resume`, `.destroy`, `.cleanup`, `.noalloc` splits. I would suggest just changing the name to read "f.splits" instead of `f.resumers`. It's a requirement for CGSCC call graph updating. 

https://github.com/llvm/llvm-project/pull/99283


More information about the llvm-branch-commits mailing list