Skip to content

Commit fd1dbbe

Browse files
committed
[Test] Fixed some function names.
1 parent ef0d621 commit fd1dbbe

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/SILOptimizer/inline_lifetime.sil

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ entry(%instance : $S):
3131
return %retval : $()
3232
}
3333

34-
sil [ossa] [always_inline] @callee_address : $@convention(thin) (@in S) -> () {
34+
sil [ossa] [always_inline] @callee_in : $@convention(thin) (@in S) -> () {
3535
entry(%instance : $*S):
3636
%retval = tuple ()
3737
return %retval : $()
@@ -102,15 +102,15 @@ entry(%instance : $S):
102102
return %result : $()
103103
}
104104

105-
// CHECK-LABEL: sil [ossa] @caller_address_callee_address : $@convention(thin) (@in S) -> () {
105+
// CHECK-LABEL: sil [ossa] @caller_in_callee_in : $@convention(thin) (@in S) -> () {
106106
// CHECK: {{bb[^,]+}}({{%[^,]+}} : $*S):
107107
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
108108
// CHECK: return [[RETVAL]]
109-
// CHECK-LABEL: } // end sil function 'caller_address_callee_address'
110-
sil [ossa] @caller_address_callee_address : $@convention(thin) (@in S) -> () {
109+
// CHECK-LABEL: } // end sil function 'caller_in_callee_in'
110+
sil [ossa] @caller_in_callee_in : $@convention(thin) (@in S) -> () {
111111
entry(%instance : $*S):
112-
%callee_address = function_ref @callee_address : $@convention(thin) (@in S) -> ()
113-
%result = apply %callee_address(%instance) : $@convention(thin) (@in S) -> ()
112+
%callee_in = function_ref @callee_in : $@convention(thin) (@in S) -> ()
113+
%result = apply %callee_in(%instance) : $@convention(thin) (@in S) -> ()
114114
return %result : $()
115115
}
116116

@@ -167,7 +167,7 @@ bb2:
167167
unwind
168168
}
169169

170-
sil hidden [ossa] [always_inline] @callee_coro_address : $@yield_once @convention(thin) (@in S) -> @yields @inout S {
170+
sil hidden [ossa] [always_inline] @callee_coro_in : $@yield_once @convention(thin) (@in S) -> @yields @inout S {
171171
bb0(%instance : $*S):
172172
yield %instance : $*S, resume bb1, unwind bb2
173173
bb1:
@@ -279,18 +279,18 @@ bb0(%instance : $S):
279279
return %retval : $()
280280
}
281281

282-
// CHECK-LABEL: sil hidden [ossa] @caller_address_callee_coro_address : $@convention(thin) (@in S) -> () {
282+
// CHECK-LABEL: sil hidden [ossa] @caller_in_callee_coro_in : $@convention(thin) (@in S) -> () {
283283
// CHECK: {{bb[^,]+}}({{%[^,]+}} : $*S):
284284
// CHECK: {{%[^,]+}} = tuple ()
285285
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
286286
// CHECK: return [[RETVAL]]
287287
// CHECK: {{bb[^,]+}}:
288288
// CHECK: unreachable
289-
// CHECK-LABEL: } // end sil function 'caller_address_callee_coro_address'
290-
sil hidden [ossa] @caller_address_callee_coro_address : $@convention(thin) (@in S) -> () {
289+
// CHECK-LABEL: } // end sil function 'caller_in_callee_coro_in'
290+
sil hidden [ossa] @caller_in_callee_coro_in : $@convention(thin) (@in S) -> () {
291291
bb0(%instance : $*S):
292-
%callee_coro_address = function_ref @callee_coro_address : $@yield_once @convention(thin) (@in S) -> @yields @inout S
293-
(%addr, %continuation) = begin_apply %callee_coro_address(%instance) : $@yield_once @convention(thin) (@in S) -> @yields @inout S
292+
%callee_coro_in = function_ref @callee_coro_in : $@yield_once @convention(thin) (@in S) -> @yields @inout S
293+
(%addr, %continuation) = begin_apply %callee_coro_in(%instance) : $@yield_once @convention(thin) (@in S) -> @yields @inout S
294294
end_apply %continuation
295295
%retval = tuple ()
296296
return %retval : $()
@@ -334,7 +334,7 @@ bb2:
334334
return %18 : $()
335335
}
336336

337-
sil [ossa] @callee_error_address : $@convention(thin) (@in S) -> @error Error {
337+
sil [ossa] @callee_error_in : $@convention(thin) (@in S) -> @error Error {
338338
bb0(%0 : $*S):
339339
cond_br undef, bb1, bb2
340340
bb1:
@@ -449,7 +449,7 @@ bb2(%12 : @owned $Error):
449449
throw %12 : $Error
450450
}
451451

452-
// CHECK-LABEL: sil hidden [ossa] @caller_address_callee_error_address : $@convention(thin) (@in S) -> @error Error {
452+
// CHECK-LABEL: sil hidden [ossa] @caller_in_callee_error_in : $@convention(thin) (@in S) -> @error Error {
453453
// CHECK: {{bb[^,]+}}({{%[^,]+}} : $*S):
454454
// CHECK: cond_br undef, [[THROW_BLOCK:bb[0-9]+]], [[REGULAR_BLOCK:bb[0-9]+]]
455455
// CHECK: [[THROW_BLOCK]]:
@@ -458,11 +458,11 @@ bb2(%12 : @owned $Error):
458458
// CHECK: {{%[^,]+}} = tuple ()
459459
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
460460
// CHECK: return [[RETVAL]]
461-
// CHECK-LABEL: } // end sil function 'caller_address_callee_error_address'
462-
sil hidden [ossa] @caller_address_callee_error_address : $@convention(thin) (@in S) -> @error Error {
461+
// CHECK-LABEL: } // end sil function 'caller_in_callee_error_in'
462+
sil hidden [ossa] @caller_in_callee_error_in : $@convention(thin) (@in S) -> @error Error {
463463
bb0(%instance : $*S):
464-
%callee_error_address = function_ref @callee_error_address : $@convention(thin) (@in S) -> @error Error
465-
try_apply %callee_error_address(%instance) : $@convention(thin) (@in S) -> @error Error, normal bb1, error bb2
464+
%callee_error_in = function_ref @callee_error_in : $@convention(thin) (@in S) -> @error Error
465+
try_apply %callee_error_in(%instance) : $@convention(thin) (@in S) -> @error Error, normal bb1, error bb2
466466
bb1(%9 : $()):
467467
%10 = tuple ()
468468
return %10 : $()

0 commit comments

Comments
 (0)