Skip to content

Commit a67a9c3

Browse files
committed
[Test] Fixed some function names.
1 parent 1a5bc04 commit a67a9c3

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
@@ -346,10 +346,10 @@ bb2:
346346

347347
// tests
348348

349-
// CHECK-LABEL: sil [ossa] @callee_owned_callee_error_owned : $@convention(thin) (@owned C) -> @error Error {
349+
// CHECK-LABEL: sil [ossa] @caller_owned_callee_error_owned : $@convention(thin) (@owned C) -> @error Error {
350350
// CHECK-NOT: begin_borrow [lexical]
351-
// CHECK-LABEL: } // end sil function 'callee_owned_callee_error_owned'
352-
sil [ossa] @callee_owned_callee_error_owned : $@convention(thin) (@owned C) -> @error Error {
351+
// CHECK-LABEL: } // end sil function 'caller_owned_callee_error_owned'
352+
sil [ossa] @caller_owned_callee_error_owned : $@convention(thin) (@owned C) -> @error Error {
353353
bb0(%instance : @owned $C):
354354
%callee_error_owned = function_ref @callee_error_owned : $@convention(thin) (@owned C) -> @error Error
355355
try_apply %callee_error_owned(%instance) : $@convention(thin) (@owned C) -> @error Error, normal bb1, error bb2
@@ -361,7 +361,7 @@ bb2(%12 : @owned $Error):
361361
throw %12 : $Error
362362
}
363363

364-
// CHECK-LABEL: sil [ossa] @callee_owned_callee_error_guaranteed : $@convention(thin) (@owned C) -> @error Error {
364+
// CHECK-LABEL: sil [ossa] @caller_owned_callee_error_guaranteed : $@convention(thin) (@owned C) -> @error Error {
365365
// CHECK: {{bb[^,]+}}([[INSTANCE:%[^,]+]] : @owned $C):
366366
// CHECK: [[LIFETIME:%[^,]+]] = begin_borrow [lexical] [[INSTANCE]]
367367
// CHECK: cond_br undef, [[THROW_BLOCK:bb[^,]+]], [[REGULAR_BLOCK:bb[0-9]+]]
@@ -375,8 +375,8 @@ bb2(%12 : @owned $Error):
375375
// CHECK: destroy_value [[INSTANCE]]
376376
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
377377
// CHECK: return [[RETVAL]]
378-
// CHECK-LABEL: } // end sil function 'callee_owned_callee_error_guaranteed'
379-
sil [ossa] @callee_owned_callee_error_guaranteed : $@convention(thin) (@owned C) -> @error Error {
378+
// CHECK-LABEL: } // end sil function 'caller_owned_callee_error_guaranteed'
379+
sil [ossa] @caller_owned_callee_error_guaranteed : $@convention(thin) (@owned C) -> @error Error {
380380
bb0(%instance : @owned $C):
381381
%callee_error_guaranteed = function_ref @callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error
382382
try_apply %callee_error_guaranteed(%instance) : $@convention(thin) (@guaranteed C) -> @error Error, normal bb1, error bb2
@@ -389,10 +389,10 @@ bb2(%12 : @owned $Error):
389389
throw %12 : $Error
390390
}
391391

392-
// CHECK-LABEL: sil [ossa] @callee_guaranteed_callee_error_owned : $@convention(thin) (@guaranteed C) -> @error Error {
392+
// CHECK-LABEL: sil [ossa] @caller_guaranteed_callee_error_owned : $@convention(thin) (@guaranteed C) -> @error Error {
393393
// CHECK-NOT: begin_borrow [lexical]
394-
// CHECK-LABEL: } // end sil function 'callee_guaranteed_callee_error_owned'
395-
sil [ossa] @callee_guaranteed_callee_error_owned : $@convention(thin) (@guaranteed C) -> @error Error {
394+
// CHECK-LABEL: } // end sil function 'caller_guaranteed_callee_error_owned'
395+
sil [ossa] @caller_guaranteed_callee_error_owned : $@convention(thin) (@guaranteed C) -> @error Error {
396396
bb0(%instance : @guaranteed $C):
397397
%copy = copy_value %instance : $C
398398
%callee_error_owned = function_ref @callee_error_owned : $@convention(thin) (@owned C) -> @error Error
@@ -404,7 +404,7 @@ bb2(%12 : @owned $Error):
404404
throw %12 : $Error
405405
}
406406

407-
// CHECK-LABEL: sil [ossa] @callee_guaranteed_callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error {
407+
// CHECK-LABEL: sil [ossa] @caller_guaranteed_callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error {
408408
// CHECK: {{bb[^,]+}}([[INSTANCE:%[^,]+]] : @guaranteed $C):
409409
// CHECK: [[LIFETIME:%[^,]+]] = begin_borrow [lexical] [[INSTANCE]]
410410
// CHECK: cond_br undef, [[THROW_BLOCK:bb[^,]+]], [[REGULAR_BLOCK:bb[0-9]+]]
@@ -416,8 +416,8 @@ bb2(%12 : @owned $Error):
416416
// CHECK: end_borrow [[LIFETIME]]
417417
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
418418
// CHECK: return [[RETVAL]]
419-
// CHECK-LABEL: } // end sil function 'callee_guaranteed_callee_error_guaranteed'
420-
sil [ossa] @callee_guaranteed_callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error {
419+
// CHECK-LABEL: } // end sil function 'caller_guaranteed_callee_error_guaranteed'
420+
sil [ossa] @caller_guaranteed_callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error {
421421
bb0(%instance : @guaranteed $C):
422422
%callee_error_guaranteed = function_ref @callee_error_guaranteed : $@convention(thin) (@guaranteed C) -> @error Error
423423
try_apply %callee_error_guaranteed(%instance) : $@convention(thin) (@guaranteed C) -> @error Error, normal bb1, error bb2
@@ -428,7 +428,7 @@ bb2(%12 : @owned $Error):
428428
throw %12 : $Error
429429
}
430430

431-
// CHECK-LABEL: sil hidden [ossa] @callee_trivial_callee_error_trivial : $@convention(thin) (S) -> @error Error {
431+
// CHECK-LABEL: sil hidden [ossa] @caller_trivial_callee_error_trivial : $@convention(thin) (S) -> @error Error {
432432
// CHECK: {{bb[^,]+}}({{%[^,]+}} : $S):
433433
// CHECK: cond_br undef, [[THROW_BLOCK:bb[^,]+]], [[REGULAR_BLOCK:bb[0-9]+]]
434434
// CHECK: [[THROW_BLOCK]]:
@@ -437,8 +437,8 @@ bb2(%12 : @owned $Error):
437437
// CHECK: [[ORIGINAL_RETVAL:%[^,]+]] = tuple ()
438438
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
439439
// CHECK: return [[RETVAL]]
440-
// CHECK-LABEL: } // end sil function 'callee_trivial_callee_error_trivial'
441-
sil hidden [ossa] @callee_trivial_callee_error_trivial : $@convention(thin) (S) -> @error Error {
440+
// CHECK-LABEL: } // end sil function 'caller_trivial_callee_error_trivial'
441+
sil hidden [ossa] @caller_trivial_callee_error_trivial : $@convention(thin) (S) -> @error Error {
442442
bb0(%instance : $S):
443443
%callee_error_trivial = function_ref @callee_error_trivial : $@convention(thin) (S) -> @error Error
444444
try_apply %callee_error_trivial(%instance) : $@convention(thin) (S) -> @error Error, normal bb1, error bb2
@@ -449,7 +449,7 @@ bb2(%12 : @owned $Error):
449449
throw %12 : $Error
450450
}
451451

452-
// CHECK-LABEL: sil hidden [ossa] @callee_address_callee_error_address : $@convention(thin) (@in S) -> @error Error {
452+
// CHECK-LABEL: sil hidden [ossa] @caller_address_callee_error_address : $@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,8 +458,8 @@ bb2(%12 : @owned $Error):
458458
// CHECK: {{%[^,]+}} = tuple ()
459459
// CHECK: [[RETVAL:%[^,]+]] = tuple ()
460460
// CHECK: return [[RETVAL]]
461-
// CHECK-LABEL: } // end sil function 'callee_address_callee_error_address'
462-
sil hidden [ossa] @callee_address_callee_error_address : $@convention(thin) (@in S) -> @error Error {
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 {
463463
bb0(%instance : $*S):
464464
%callee_error_address = function_ref @callee_error_address : $@convention(thin) (@in S) -> @error Error
465465
try_apply %callee_error_address(%instance) : $@convention(thin) (@in S) -> @error Error, normal bb1, error bb2

0 commit comments

Comments
 (0)