Skip to content

Commit 23d21cd

Browse files
committed
[Test] Numbered cases.
1 parent 9404e9c commit 23d21cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/SILOptimizer/address_lowering.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ bb0:
14171417
return %retval : $()
14181418
} // end sil function '$ss17FixedWidthIntegerPsEyxSgSScfC'
14191419

1420-
sil hidden [ossa] @testBeginApplyDeadYield : $@convention(thin) <T> (@guaranteed TestGeneric<T>) -> () {
1420+
sil hidden [ossa] @testBeginApply1DeadYield : $@convention(thin) <T> (@guaranteed TestGeneric<T>) -> () {
14211421
bb0(%0 : @guaranteed $TestGeneric<T>):
14221422
%2 = class_method %0 : $TestGeneric<T>, #TestGeneric.borrowedGeneric!read : <T> (TestGeneric<T>) -> () -> (), $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
14231423
(%3, %4) = begin_apply %2<T>(%0) : $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
@@ -1428,7 +1428,7 @@ bb0(%0 : @guaranteed $TestGeneric<T>):
14281428

14291429
class Klass {}
14301430

1431-
// CHECK-LABEL: sil hidden [ossa] @testBeginApplyLoadableYieldWithIndirectConv :
1431+
// CHECK-LABEL: sil hidden [ossa] @testBeginApply2LoadableYieldWithIndirectConv :
14321432
// CHECK: bb0(%0 : @guaranteed $TestGeneric<Klass>):
14331433
// CHECK: [[STK:%.*]] = alloc_stack $Klass
14341434
// CHECK: [[METH:%.*]] = class_method %0 : $TestGeneric<Klass>, #TestGeneric.borrowedGeneric!read : <T> (TestGeneric<T>) -> () -> (), $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
@@ -1437,7 +1437,7 @@ class Klass {}
14371437
// CHECK: end_apply [[TOK]]
14381438
// CHECK: destroy_addr [[STK]] : $*Klass
14391439
// CHECK-LABEL: }
1440-
sil hidden [ossa] @testBeginApplyLoadableYieldWithIndirectConv : $@convention(thin) <Klass> (@guaranteed TestGeneric<Klass>) -> () {
1440+
sil hidden [ossa] @testBeginApply2LoadableYieldWithIndirectConv : $@convention(thin) <Klass> (@guaranteed TestGeneric<Klass>) -> () {
14411441
bb0(%0 : @guaranteed $TestGeneric<Klass>):
14421442
%2 = class_method %0 : $TestGeneric<Klass>, #TestGeneric.borrowedGeneric!read : <Klass> (TestGeneric<Klass>) -> () -> (), $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
14431443
(%3, %4) = begin_apply %2<Klass>(%0) : $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
@@ -1448,16 +1448,16 @@ bb0(%0 : @guaranteed $TestGeneric<Klass>):
14481448
return %10 : $()
14491449
}
14501450

1451-
// CHECK-LABEL: sil hidden [ossa] @testBeginApplyOpaqueYield :
1451+
// CHECK-LABEL: sil hidden [ossa] @testBeginApply3OpaqueYield :
14521452
// CHECK: bb0(%0 : @guaranteed $TestGeneric<T>):
14531453
// CHECK: [[STK:%.*]] = alloc_stack $T
14541454
// CHECK: [[M:%.*]] = class_method %0 : $TestGeneric<T>, #TestGeneric.borrowedGeneric!read : <T> (TestGeneric<T>) -> () -> (), $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
14551455
// CHECK: ([[Y:%.*]], [[TOK:%.*]]) = begin_apply %2<T>(%0) : $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
14561456
// CHECK: copy_addr [[Y]] to [init] [[STK]] : $*T
14571457
// CHECK: end_apply [[TOK]]
14581458
// CHECK: destroy_addr [[STK]] : $*T
1459-
// CHECK-LABEL: } // end sil function 'testBeginApplyOpaqueYield'
1460-
sil hidden [ossa] @testBeginApplyOpaqueYield : $@convention(thin) <T> (@guaranteed TestGeneric<T>) -> () {
1459+
// CHECK-LABEL: } // end sil function 'testBeginApply3OpaqueYield'
1460+
sil hidden [ossa] @testBeginApply3OpaqueYield : $@convention(thin) <T> (@guaranteed TestGeneric<T>) -> () {
14611461
bb0(%0 : @guaranteed $TestGeneric<T>):
14621462
%2 = class_method %0 : $TestGeneric<T>, #TestGeneric.borrowedGeneric!read : <T> (TestGeneric<T>) -> () -> (), $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0
14631463
(%3, %4) = begin_apply %2<T>(%0) : $@yield_once @convention(method) <τ_0_0> (@guaranteed TestGeneric<τ_0_0>) -> @yields @in_guaranteed τ_0_0

0 commit comments

Comments
 (0)