@@ -410,7 +410,7 @@ is_not_equal:
410
410
i32 64 ; Initial async context size without space for frame
411
411
}>
412
412
413
- define swiftcc void @polymorphic_suspend_return (i8* %async.ctxt , %async.task* %task , %async.actor* %actor ) {
413
+ define swiftcc void @polymorphic_suspend_return (i8* swiftasync %async.ctxt , %async.task* %task , %async.actor* %actor ) {
414
414
entry:
415
415
%tmp = alloca { i64 , i64 }, align 8
416
416
%proj.1 = getelementptr inbounds { i64 , i64 }, { i64 , i64 }* %tmp , i64 0 , i32 0
@@ -445,7 +445,7 @@ entry:
445
445
%resume_proj_fun = bitcast i8* (i8* )* @resume_context_projection to i8*
446
446
%callee = bitcast void (i8* , %async.task* , %async.actor* )* @asyncSuspend to i8*
447
447
%res = call {i8* , i8* , i8* , i8* } (i32 , i8* , i8* , ...)
448
- @llvm.coro.suspend.async.sl_p0i8p0i8p0i8p0i8s (i32 0 ,
448
+ @llvm.coro.suspend.async.sl_p0i8p0i8p0i8p0i8s (i32 256 , ;; swiftasync at 0 and swiftself at 1 in resume function
449
449
i8* %resume.func_ptr ,
450
450
i8* %resume_proj_fun ,
451
451
void (i8* , i8* , %async.task* , %async.actor* )* @my_async_function.my_other_async_function_fp.apply ,
@@ -464,8 +464,8 @@ entry:
464
464
unreachable
465
465
}
466
466
467
- ; CHECK-LABEL: define swiftcc void @polymorphic_suspend_return(i8* %async.ctxt, %async.task* %task, %async.actor* %actor)
468
- ; CHECK-LABEL: define internal swiftcc void @polymorphic_suspend_return.resume.0(i8* {{.*}}%0, i8* {{.*}}%1, i8* {{.*}}%2, i8* {{.*}}%3)
467
+ ; CHECK-LABEL: define swiftcc void @polymorphic_suspend_return(i8* swiftasync %async.ctxt, %async.task* %task, %async.actor* %actor)
468
+ ; CHECK-LABEL: define internal swiftcc void @polymorphic_suspend_return.resume.0(i8* {{.*}}swiftasync{{.*}} %0, i8* {{.*}}swiftself{{.*}} %1, i8* {{.*}}%2, i8* {{.*}}%3)
469
469
; CHECK: bitcast i8* %3 to %async.task*
470
470
; CHECK: }
471
471
0 commit comments