@@ -19,17 +19,17 @@ struct Unmanaged<Instance> where Instance : AnyObject {
19
19
unowned(unsafe) var _value: @sil_unmanaged Instance
20
20
}
21
21
22
- // CHECK-LABEL: begin {{.*}} on copy_and_move_argument: canonicalize-borrow-scope
22
+ // CHECK-LABEL: begin {{.*}} on copy_and_move_argument: canonicalize_borrow_scope
23
23
// CHECK-LABEL: sil [ossa] @copy_and_move_argument : {{.*}} {
24
24
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] :
25
25
// CHECK: [[UNMANAGED:%[^,]+]] = ref_to_unmanaged [[INSTANCE]]
26
26
// CHECK: [[RETVAL:%[^,]+]] = struct $Unmanaged<Instance> ([[UNMANAGED]] : $@sil_unmanaged Instance)
27
27
// CHECK: return [[RETVAL]]
28
28
// CHECK-LABEL: } // end sil function 'copy_and_move_argument'
29
- // CHECK-LABEL: end {{.*}} on copy_and_move_argument: canonicalize-borrow-scope
29
+ // CHECK-LABEL: end {{.*}} on copy_and_move_argument: canonicalize_borrow_scope
30
30
sil [ossa] @copy_and_move_argument : $@convention(thin) <Instance where Instance : AnyObject> (@guaranteed Instance) -> Unmanaged<Instance> {
31
31
bb0(%instance : @guaranteed $Instance):
32
- specify_test "canonicalize-borrow-scope @argument"
32
+ specify_test "canonicalize_borrow_scope @argument"
33
33
%copy_1 = copy_value %instance : $Instance
34
34
%copy_2 = copy_value %copy_1 : $Instance
35
35
%move = move_value %copy_2 : $Instance
@@ -44,17 +44,17 @@ bb0(%instance : @guaranteed $Instance):
44
44
return %retval : $Unmanaged<Instance>
45
45
}
46
46
47
- // CHECK-LABEL: begin {{.*}} on copy_and_move_lexical_argument: canonicalize-borrow-scope
47
+ // CHECK-LABEL: begin {{.*}} on copy_and_move_lexical_argument: canonicalize_borrow_scope
48
48
// CHECK-LABEL: sil [ossa] @copy_and_move_lexical_argument : {{.*}} {
49
49
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] :
50
50
// CHECK: [[UNMANAGED:%[^,]+]] = ref_to_unmanaged [[INSTANCE]]
51
51
// CHECK: [[RETVAL:%[^,]+]] = struct $Unmanaged<Instance> ([[UNMANAGED]] : $@sil_unmanaged Instance)
52
52
// CHECK: return [[RETVAL]]
53
53
// CHECK-LABEL: } // end sil function 'copy_and_move_lexical_argument'
54
- // CHECK-LABEL: end {{.*}} on copy_and_move_lexical_argument: canonicalize-borrow-scope
54
+ // CHECK-LABEL: end {{.*}} on copy_and_move_lexical_argument: canonicalize_borrow_scope
55
55
sil [ossa] @copy_and_move_lexical_argument : $@convention(thin) <Instance where Instance : AnyObject> (@guaranteed Instance) -> Unmanaged<Instance> {
56
56
bb0(%instance : @guaranteed $Instance):
57
- specify_test "canonicalize-borrow-scope @argument"
57
+ specify_test "canonicalize_borrow_scope @argument"
58
58
%copy_1 = copy_value %instance : $Instance
59
59
%copy_2 = copy_value %copy_1 : $Instance
60
60
%move = move_value [lexical] %copy_2 : $Instance
@@ -69,7 +69,7 @@ bb0(%instance : @guaranteed $Instance):
69
69
return %retval : $Unmanaged<Instance>
70
70
}
71
71
72
- // CHECK-LABEL: begin running test {{.*}} on dont_rewrite_inner_forwarding_user: canonicalize-borrow-scope
72
+ // CHECK-LABEL: begin running test {{.*}} on dont_rewrite_inner_forwarding_user: canonicalize_borrow_scope
73
73
// CHECK-LABEL: sil [ossa] @dont_rewrite_inner_forwarding_user : {{.*}} {
74
74
// CHECK: [[GET_C:%[^,]+]] = function_ref @getD
75
75
// CHECK: [[TAKE_C:%[^,]+]] = function_ref @takeC
@@ -84,12 +84,12 @@ bb0(%instance : @guaranteed $Instance):
84
84
// CHECK: destroy_value [[C]]
85
85
// CHECK: return [[OUTER_UPCAST]]
86
86
// CHECK-LABEL: } // end sil function 'dont_rewrite_inner_forwarding_user'
87
- // CHECK-LABEL: end running test {{.*}} on dont_rewrite_inner_forwarding_user: canonicalize-borrow-scope
87
+ // CHECK-LABEL: end running test {{.*}} on dont_rewrite_inner_forwarding_user: canonicalize_borrow_scope
88
88
sil [ossa] @dont_rewrite_inner_forwarding_user : $@convention(thin) () -> (@owned C) {
89
89
%getD = function_ref @getD : $@convention(thin) () -> (@owned D)
90
90
%takeC = function_ref @takeC : $@convention(thin) (@owned C) -> ()
91
91
%d = apply %getD() : $@convention(thin) () -> (@owned D)
92
- specify_test "canonicalize-borrow-scope @instruction"
92
+ specify_test "canonicalize_borrow_scope @instruction"
93
93
%b = begin_borrow %d : $D
94
94
%c2 = copy_value %b : $D
95
95
%u2 = upcast %c2 : $D to $C
@@ -101,7 +101,7 @@ sil [ossa] @dont_rewrite_inner_forwarding_user : $@convention(thin) () -> (@owne
101
101
return %u2 : $C
102
102
}
103
103
104
- // CHECK-LABEL: begin running test {{.*}} on dont_hoist_inner_destructure: canonicalize-borrow-scope
104
+ // CHECK-LABEL: begin running test {{.*}} on dont_hoist_inner_destructure: canonicalize_borrow_scope
105
105
// CHECK-LABEL: sil [ossa] @dont_hoist_inner_destructure : {{.*}} {
106
106
// CHECK: {{bb[0-9]+}}([[S:%[^,]+]] :
107
107
// CHECK: [[OUTER_COPY:%[^,]+]] = copy_value [[S]]
@@ -123,10 +123,10 @@ sil [ossa] @dont_rewrite_inner_forwarding_user : $@convention(thin) () -> (@owne
123
123
// CHECK: br [[EXIT]]
124
124
// CHECK: [[EXIT]]:
125
125
// CHECK-LABEL: } // end sil function 'dont_hoist_inner_destructure'
126
- // CHECK-LABEL: end running test {{.*}} on dont_hoist_inner_destructure: canonicalize-borrow-scope
126
+ // CHECK-LABEL: end running test {{.*}} on dont_hoist_inner_destructure: canonicalize_borrow_scope
127
127
sil [ossa] @dont_hoist_inner_destructure : $@convention(thin) (@owned S) -> () {
128
128
entry(%s : @owned $S):
129
- specify_test "canonicalize-borrow-scope @instruction"
129
+ specify_test "canonicalize_borrow_scope @instruction"
130
130
%s_borrow = begin_borrow %s : $S
131
131
%s_copy = copy_value %s_borrow : $S
132
132
cond_br undef, left, right
0 commit comments