@@ -416,7 +416,7 @@ is_not_equal:
416
416
i32 64 ; Initial async context size without space for frame
417
417
}>
418
418
419
- define swiftcc void @polymorphic_suspend_return (i8* %async.ctxt , %async.task* %task , %async.actor* %actor ) {
419
+ define swiftcc void @polymorphic_suspend_return (i8* swiftasync %async.ctxt , %async.task* %task , %async.actor* %actor ) {
420
420
entry:
421
421
%tmp = alloca { i64 , i64 }, align 8
422
422
%proj.1 = getelementptr inbounds { i64 , i64 }, { i64 , i64 }* %tmp , i64 0 , i32 0
@@ -451,7 +451,7 @@ entry:
451
451
%resume_proj_fun = bitcast i8* (i8* )* @resume_context_projection to i8*
452
452
%callee = bitcast void (i8* , %async.task* , %async.actor* )* @asyncSuspend to i8*
453
453
%res = call {i8* , i8* , i8* , i8* } (i32 , i8* , i8* , ...)
454
- @llvm.coro.suspend.async.sl_p0i8p0i8p0i8p0i8s (i32 0 ,
454
+ @llvm.coro.suspend.async.sl_p0i8p0i8p0i8p0i8s (i32 256 , ;; swiftasync at 0 and swiftself at 1 in resume function
455
455
i8* %resume.func_ptr ,
456
456
i8* %resume_proj_fun ,
457
457
void (i8* , i8* , %async.task* , %async.actor* )* @my_async_function.my_other_async_function_fp.apply ,
@@ -470,8 +470,8 @@ entry:
470
470
unreachable
471
471
}
472
472
473
- ; CHECK-LABEL: define swiftcc void @polymorphic_suspend_return(i8* %async.ctxt, %async.task* %task, %async.actor* %actor)
474
- ; CHECK-LABEL: define internal swiftcc void @polymorphic_suspend_return.resume.0(i8* {{.*}}%0, i8* {{.*}}%1, i8* {{.*}}%2, i8* {{.*}}%3)
473
+ ; CHECK-LABEL: define swiftcc void @polymorphic_suspend_return(i8* swiftasync %async.ctxt, %async.task* %task, %async.actor* %actor)
474
+ ; CHECK-LABEL: define internal swiftcc void @polymorphic_suspend_return.resume.0(i8* {{.*}}swiftasync{{.*}} %0, i8* {{.*}}swiftself{{.*}} %1, i8* {{.*}}%2, i8* {{.*}}%3)
475
475
; CHECK: bitcast i8* %3 to %async.task*
476
476
; CHECK: }
477
477
0 commit comments