@@ -11,36 +11,36 @@ func concurrentTest() async {}
1111
1212// CHECK-LABEL: // callerTest()
1313// CHECK: // Isolation: caller_isolation_inheriting
14- // CHECK: sil hidden [ossa] @$s14attr_execution10callerTestyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> () {
14+ // CHECK: sil hidden [ossa] @$s14attr_execution10callerTestyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> () {
1515nonisolated ( nonsending)
1616func callerTest( ) async { }
1717
1818struct Test {
1919 // CHECK-LABEL: // closure #1 in variable initialization expression of Test.x
2020 // CHECK: // Isolation: caller_isolation_inheriting
21- // CHECK: sil private [ossa] @$s14attr_execution4TestV1xyyYaYCcvpfiyyYaYCcfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
21+ // CHECK: sil private [ossa] @$s14attr_execution4TestV1xyyYaYCcvpfiyyYaYCcfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
2222 var x : ( ) async -> Void = { }
2323
2424 // CHECK-LABEL: // Test.test()
2525 // CHECK: // Isolation: caller_isolation_inheriting
26- // CHECK: sil hidden [ossa] @$s14attr_execution4TestV4testyyYaF : $@convention(method) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> , @guaranteed Test) -> ()
27- // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Optional<any Actor> , [[SELF:%.*]] : @guaranteed $Test)
26+ // CHECK: sil hidden [ossa] @$s14attr_execution4TestV4testyyYaF : $@convention(method) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor , @guaranteed Test) -> ()
27+ // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Builtin.ImplicitActor , [[SELF:%.*]] : @guaranteed $Test)
2828 // CHECK: [[X_REF:%.*]] = struct_extract %1, #Test.x
2929 // CHECK: [[X_REF_COPY:%.]] = copy_value [[X_REF]]
3030 // CHECK: [[BORROWED_X:%.*]] = begin_borrow [[X_REF_COPY]]
31- // CHECK: apply [[BORROWED_X]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
31+ // CHECK: apply [[BORROWED_X]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
3232 // CHECK: } // end sil function '$s14attr_execution4TestV4testyyYaF'
3333 func test( ) async {
3434 await x ( )
3535 }
3636
3737 // CHECK-LABEL: // Test.testParam(fn:)
3838 // CHECK: // Isolation: caller_isolation_inheriting
39- // CHECK: sil hidden [ossa] @$s14attr_execution4TestV9testParam2fnyyyYaYCcSg_tYaF : $@convention(method) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> , @guaranteed Optional<@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()>, @guaranteed Test) -> ()
40- // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Optional<any Actor> , [[OPT_FN:%.*]] : @guaranteed $Optional<@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()>, [[SELF:%.*]] : @guaranteed $Test)
41- // CHECK: bb1([[FN:%.*]] : @owned $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ())
39+ // CHECK: sil hidden [ossa] @$s14attr_execution4TestV9testParam2fnyyyYaYCcSg_tYaF : $@convention(method) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor , @guaranteed Optional<@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()>, @guaranteed Test) -> ()
40+ // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Builtin.ImplicitActor , [[OPT_FN:%.*]] : @guaranteed $Optional<@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()>, [[SELF:%.*]] : @guaranteed $Test)
41+ // CHECK: bb1([[FN:%.*]] : @owned $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ())
4242 // CHECK: [[BORROWED_FN:%.*]] = begin_borrow [[FN]]
43- // CHECK: apply [[BORROWED_FN]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
43+ // CHECK: apply [[BORROWED_FN]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
4444 // CHECK: } // end sil function '$s14attr_execution4TestV9testParam2fnyyyYaYCcSg_tYaF'
4545 func testParam( fn: ( ( ) async -> Void ) ? ) async {
4646 await fn ? ( )
@@ -49,11 +49,11 @@ struct Test {
4949
5050// CHECK-LABEL: // testLocal()
5151// CHECK: // Isolation: caller_isolation_inheriting
52- // CHECK: sil hidden [ossa] @$s14attr_execution9testLocalyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> () {
53- // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Optional<any Actor> )
54- // CHECK: bb1([[FN:%.*]] : @owned $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ())
52+ // CHECK: sil hidden [ossa] @$s14attr_execution9testLocalyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> () {
53+ // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Builtin.ImplicitActor )
54+ // CHECK: bb1([[FN:%.*]] : @owned $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ())
5555// CHECK: [[BORROWED_FN:%.*]] = begin_borrow [[FN]]
56- // CHECK: apply [[BORROWED_FN]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
56+ // CHECK: apply [[BORROWED_FN]]([[ISOLATION]]) : $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
5757// CHECK: } // end sil function '$s14attr_execution9testLocalyyYaF'
5858func testLocal( ) async {
5959 let fn : ( ( ) async -> Void ) ? = nil
@@ -62,20 +62,20 @@ func testLocal() async {
6262
6363// CHECK-LABEL: // takesClosure(fn:)
6464// CHECK: // Isolation: unspecified
65- // CHECK: sil hidden [ossa] @$s14attr_execution12takesClosure2fnyyyYaYCXE_tF : $@convention(thin) (@guaranteed @noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()) -> ()
65+ // CHECK: sil hidden [ossa] @$s14attr_execution12takesClosure2fnyyyYaYCXE_tF : $@convention(thin) (@guaranteed @noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()) -> ()
6666func takesClosure( fn: ( ) async -> Void ) {
6767}
6868
6969// CHECK-LABEL: sil hidden [ossa] @$s14attr_execution11testClosureyyF : $@convention(thin) () -> ()
70- // CHECK: [[CLOSURE:%.*]] = function_ref @$s14attr_execution11testClosureyyFyyYaYCXEfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
71- // CHECK: [[THUNKED_CLOSURE:%.*]] = thin_to_thick_function %0 to $@noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
72- // CHECK: [[TAKES_CLOSURE:%.*]] = function_ref @$s14attr_execution12takesClosure2fnyyyYaYCXE_tF : $@convention(thin) (@guaranteed @noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()) -> ()
70+ // CHECK: [[CLOSURE:%.*]] = function_ref @$s14attr_execution11testClosureyyFyyYaYCXEfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
71+ // CHECK: [[THUNKED_CLOSURE:%.*]] = thin_to_thick_function %0 to $@noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
72+ // CHECK: [[TAKES_CLOSURE:%.*]] = function_ref @$s14attr_execution12takesClosure2fnyyyYaYCXE_tF : $@convention(thin) (@guaranteed @noescape @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()) -> ()
7373// CHECK: apply [[TAKES_CLOSURE]]([[THUNKED_CLOSURE]])
7474// CHECK: } // end sil function '$s14attr_execution11testClosureyyF'
7575
7676// CHECK-LABEL: // closure #1 in testClosure()
7777// CHECK: // Isolation: caller_isolation_inheriting
78- // CHECK: sil private [ossa] @$s14attr_execution11testClosureyyFyyYaYCXEfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> ) -> ()
78+ // CHECK: sil private [ossa] @$s14attr_execution11testClosureyyFyyYaYCXEfU_ : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor ) -> ()
7979func testClosure( ) {
8080 takesClosure {
8181 }
@@ -86,8 +86,8 @@ protocol P {
8686
8787func open< T: P > ( _: T ) async { }
8888
89- // CHECK-LABEL: sil hidden [ossa] @$s14attr_execution19testOpenExistential11existentialyAA1P_p_tYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor> , @in_guaranteed any P) -> ()
90- // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Optional<any Actor> , [[EXISTENTIAL:%.*]] : $*any P):
89+ // CHECK-LABEL: sil hidden [ossa] @$s14attr_execution19testOpenExistential11existentialyAA1P_p_tYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Builtin.ImplicitActor , @in_guaranteed any P) -> ()
90+ // CHECK: bb0([[ISOLATION:%.*]] : @guaranteed $Builtin.ImplicitActor , [[EXISTENTIAL:%.*]] : $*any P):
9191// CHECK: [[OPEN_REF:%.*]] = function_ref @$s14attr_execution4openyyxYaAA1PRzlF
9292// CHECK: apply [[OPEN_REF]]<@opened("{{.*}}", any P) Self>([[ISOLATION]], {{.*}})
9393// CHECK: } // end sil function '$s14attr_execution19testOpenExistential11existentialyAA1P_p_tYaF'
0 commit comments