1
- // RUN: %target-swift-emit-silgen \
2
- // RUN: %s \
1
+ // RUN: %target-swift-emit-silgen \
2
+ // RUN: %s \
3
3
// RUN: -enable-experimental-feature CoroutineAccessors \
4
4
// RUN: | %FileCheck %s
5
5
@@ -10,7 +10,7 @@ public var o: any AnyObject
10
10
public var _i : Int = 0
11
11
12
12
public var irm : Int {
13
- // CHECK-LABEL: sil [ossa] @$s19coroutine_accessors1SV3irmSivy :
13
+ // CHECK-LABEL: sil [ossa] @$s19coroutine_accessors1SV3irmSivy :
14
14
// CHECK-SAME: $@yield_once
15
15
// CHECK-SAME: @convention(method)
16
16
// CHECK-SAME: (@guaranteed S)
@@ -21,7 +21,7 @@ public var irm: Int {
21
21
read {
22
22
yield _i
23
23
}
24
- // CHECK-LABEL: sil [ossa] @$s19coroutine_accessors1SV3irmSivx :
24
+ // CHECK-LABEL: sil [ossa] @$s19coroutine_accessors1SV3irmSivx :
25
25
// CHECK-SAME: $@yield_once
26
26
// CHECK-SAME: @convention(method)
27
27
// CHECK-SAME: (@inout S)
@@ -46,6 +46,7 @@ public var irm: Int {
46
46
// CHECK: end_apply [[TOKEN]]
47
47
// CHECK: return [[VALUE:%[^,]+]]
48
48
// CHECK-LABEL: } // end sil function '$s19coroutine_accessors1SV3irmSivg'
49
+
49
50
// CHECK-LABEL: sil {{.*}}[ossa] @$s19coroutine_accessors1SV3irmSivs :
50
51
// CHECK-SAME: $@convention(method)
51
52
// CHECK-SAME: (Int, @inout S)
@@ -55,14 +56,14 @@ public var irm: Int {
55
56
// CHECK: bb0(
56
57
// CHECK-SAME: [[NEW_VALUE:%[^,]+]] :
57
58
// CHECK-SAME: [[SELF:%[^,]+]] :
58
- // CHECK-SAME: ):
59
- // CHECK: [[SELF_ACCESS:%[^,]+]] = begin_access [modify] [unknown] [[SELF]]
60
- // CHECK: [[MODIFY_ACCESSOR:%[^,]+]] = function_ref @$s19coroutine_accessors1SV3irmSivx
61
- // CHECK: ([[VALUE_ADDRESS:%[^,]+]], [[TOKEN:%[^,]+]]) = begin_apply [[MODIFY_ACCESSOR]]([[SELF_ACCESS]])
62
- // CHECK: assign [[NEW_VALUE:%[^,]+]] to [[VALUE_ADDRESS]]
63
- // CHECK: end_apply [[TOKEN]]
64
- // CHECK: end_access [[SELF_ACCESS]]
65
- // CHECK-LABEL: } // end sil function '$s19coroutine_accessors1SV3irmSivs'
59
+ // CHECK-SAME: ):
60
+ // CHECK: [[SELF_ACCESS:%[^,]+]] = begin_access [modify] [unknown] [[SELF]]
61
+ // CHECK: [[MODIFY_ACCESSOR:%[^,]+]] = function_ref @$s19coroutine_accessors1SV3irmSivx
62
+ // CHECK: ([[VALUE_ADDRESS:%[^,]+]], [[TOKEN:%[^,]+]]) = begin_apply [[MODIFY_ACCESSOR]]([[SELF_ACCESS]])
63
+ // CHECK: assign [[NEW_VALUE:%[^,]+]] to [[VALUE_ADDRESS]]
64
+ // CHECK: end_apply [[TOKEN]]
65
+ // CHECK: end_access [[SELF_ACCESS]]
66
+ // CHECK-LABEL:} // end sil function '$s19coroutine_accessors1SV3irmSivs'
66
67
} // public var irm
67
68
68
69
} // public struct S
0 commit comments