@@ -28,31 +28,31 @@ class D : C {}
28
28
29
29
// These introducers have no enclosing def.
30
30
31
- // CHECK-LABEL: enclosing_def_empty: find-enclosing-defs with: %0
31
+ // CHECK-LABEL: enclosing_def_empty: find_enclosing_defs with: %0
32
32
// CHECK: } // end sil function 'enclosing_def_empty'
33
33
// CHECK: Enclosing Defs:
34
- // CHECK-NEXT: enclosing_def_empty: find-enclosing-defs with: %0
34
+ // CHECK-NEXT: enclosing_def_empty: find_enclosing_defs with: %0
35
35
36
36
// CHECK-LABEL: enclosing_def_empty: enclosing_values with: %0
37
37
// CHECK: } // end sil function 'enclosing_def_empty'
38
38
// CHECK: Enclosing values for: %0 = argument of bb0 : $C
39
39
// CHECK-NEXT: enclosing_def_empty: enclosing_values with: %0
40
40
41
- // CHECK-LABEL: enclosing_def_empty: find-enclosing-defs with: %borrow1
41
+ // CHECK-LABEL: enclosing_def_empty: find_enclosing_defs with: %borrow1
42
42
// CHECK: } // end sil function 'enclosing_def_empty'
43
43
// CHECK: Enclosing Defs:
44
- // CHECK-NEXT: enclosing_def_empty: find-enclosing-defs with: %borrow1
44
+ // CHECK-NEXT: enclosing_def_empty: find_enclosing_defs with: %borrow1
45
45
46
46
// CHECK-LABEL: enclosing_def_empty: enclosing_values with: %borrow1
47
47
// CHECK: } // end sil function 'enclosing_def_empty'
48
48
// CHECK: Enclosing values for: %{{.*}} = load_borrow %1 : $*C
49
49
// CHECK-NEXT: enclosing_def_empty: enclosing_values with: %borrow1
50
50
sil [ossa] @enclosing_def_empty : $@convention(thin) (@guaranteed C, @in C) -> () {
51
51
entry(%0 : @guaranteed $C, %1 : $*C):
52
- specify_test "find-enclosing-defs %0"
52
+ specify_test "find_enclosing_defs %0"
53
53
specify_test "enclosing_values %0"
54
54
%borrow1 = load_borrow %1 : $*C
55
- specify_test "find-enclosing-defs %borrow1"
55
+ specify_test "find_enclosing_defs %borrow1"
56
56
specify_test "enclosing_values %borrow1"
57
57
end_borrow %borrow1 : $C
58
58
destroy_addr %1 : $*C
@@ -63,10 +63,10 @@ entry(%0 : @guaranteed $C, %1 : $*C):
63
63
// There is no introducer if the guaranteed value is produced from a
64
64
// trivial value.
65
65
66
- // CHECK-LABEL: enclosing_def_trivial: find-enclosing-defs with: %phi
66
+ // CHECK-LABEL: enclosing_def_trivial: find_enclosing_defs with: %phi
67
67
// CHECK: } // end sil function 'enclosing_def_trivial'
68
68
// CHECK: Enclosing Defs:
69
- // CHECK-NEXT: enclosing_def_trivial: find-enclosing-defs with: %phi
69
+ // CHECK-NEXT: enclosing_def_trivial: find_enclosing_defs with: %phi
70
70
71
71
// CHECK-LABEL: enclosing_def_trivial: enclosing_values with: %phi
72
72
// CHECK: } // end sil function 'enclosing_def_trivial'
78
78
br none(%trivial : $FakeOptional<C>)
79
79
80
80
none(%phi : @guaranteed $FakeOptional<C>):
81
- specify_test "find-enclosing-defs %phi"
81
+ specify_test "find_enclosing_defs %phi"
82
82
specify_test "enclosing_values %phi"
83
83
%retval = tuple ()
84
84
return %retval : $()
@@ -87,10 +87,10 @@ none(%phi : @guaranteed $FakeOptional<C>):
87
87
// There is an introducer but no enclosing def if the guaranteed value
88
88
// is produced from a an unreachable loop.
89
89
90
- // CHECK-LABEL: enclosing_def_unreachable: find-enclosing-defs with: %phiCycle
90
+ // CHECK-LABEL: enclosing_def_unreachable: find_enclosing_defs with: %phiCycle
91
91
// CHECK: } // end sil function 'enclosing_def_unreachable'
92
92
// CHECK: Enclosing Defs:
93
- // CHECK-NEXT: enclosing_def_unreachable: find-enclosing-defs with: %phiCycle
93
+ // CHECK-NEXT: enclosing_def_unreachable: find_enclosing_defs with: %phiCycle
94
94
95
95
// CHECK-LABEL: enclosing_def_unreachable: enclosing_values with: %phiCycle
96
96
// CHECK: } // end sil function 'enclosing_def_unreachable'
@@ -101,7 +101,7 @@ entry:
101
101
br exit
102
102
103
103
unreachable_loop(%phiCycle : @guaranteed $C):
104
- specify_test "find-enclosing-defs %phiCycle"
104
+ specify_test "find_enclosing_defs %phiCycle"
105
105
specify_test "enclosing_values %phiCycle"
106
106
br unreachable_loop(%phiCycle : $C)
107
107
@@ -113,11 +113,11 @@ exit:
113
113
// All data flow paths through phis and aggregates originate from the
114
114
// same borrow scope. This is the same as finding the introducer.
115
115
116
- // CHECK-LABEL: enclosing_def_single_introducer: find-enclosing-defs with: %aggregate2
116
+ // CHECK-LABEL: enclosing_def_single_introducer: find_enclosing_defs with: %aggregate2
117
117
// CHECK: sil [ossa] @enclosing_def_single_introducer
118
118
// CHECK: Enclosing Defs:
119
119
// CHECK: begin_borrow %0 : $C
120
- // CHECK-NEXT: enclosing_def_single_introducer: find-enclosing-defs with: %aggregate2
120
+ // CHECK-NEXT: enclosing_def_single_introducer: find_enclosing_defs with: %aggregate2
121
121
122
122
// CHECK-LABEL: enclosing_def_single_introducer: enclosing_values with: %aggregate2
123
123
// CHECK: sil [ossa] @enclosing_def_single_introducer
@@ -140,7 +140,7 @@ bb1(%payload : @guaranteed $D):
140
140
%first = struct_extract %aggregate : $PairC, #PairC.first
141
141
%second = struct_extract %aggregate : $PairC, #PairC.second
142
142
%aggregate2 = struct $PairC(%first : $C, %second : $C)
143
- specify_test "find-enclosing-defs %aggregate2"
143
+ specify_test "find_enclosing_defs %aggregate2"
144
144
specify_test "enclosing_values %aggregate2"
145
145
br exit
146
146
@@ -155,11 +155,11 @@ exit:
155
155
156
156
// All reborrows original from the same dominating borrow scope.
157
157
158
- // CHECK: enclosing_def_single_outer: find-enclosing-defs with: %reborrow3
158
+ // CHECK: enclosing_def_single_outer: find_enclosing_defs with: %reborrow3
159
159
// CHECK: } // end sil function 'enclosing_def_single_outer'
160
160
// CHECK: Enclosing Defs:
161
161
// CHECK-NEXT: %0 = argument of bb0 : $C
162
- // CHECK-NEXT: enclosing_def_single_outer: find-enclosing-defs with: %reborrow3
162
+ // CHECK-NEXT: enclosing_def_single_outer: find_enclosing_defs with: %reborrow3
163
163
164
164
// CHECK: enclosing_def_single_outer: enclosing_values with: %reborrow3
165
165
// CHECK: } // end sil function 'enclosing_def_single_outer'
@@ -176,7 +176,7 @@ bb2(%reborrow2 : @guaranteed $C):
176
176
br bb3(%reborrow2 : $C)
177
177
178
178
bb3(%reborrow3 : @guaranteed $C):
179
- specify_test "find-enclosing-defs %reborrow3"
179
+ specify_test "find_enclosing_defs %reborrow3"
180
180
specify_test "enclosing_values %reborrow3"
181
181
end_borrow %reborrow3 : $C
182
182
%retval = tuple ()
@@ -185,13 +185,13 @@ bb3(%reborrow3 : @guaranteed $C):
185
185
186
186
// Find the outer enclosingreborrow.
187
187
188
- // CHECK-LABEL: enclosing_def_reborrow: find-enclosing-defs with: %reborrow_inner3
188
+ // CHECK-LABEL: enclosing_def_reborrow: find_enclosing_defs with: %reborrow_inner3
189
189
// CHECK: sil [ossa] @enclosing_def_reborrow : $@convention(thin) (@guaranteed C) -> () {
190
190
// CHECK: bb1([[REBORROW:%.*]] : @reborrow @guaranteed $C, %{{.*}} : @reborrow @guaranteed $C):
191
191
// CHECK: } // end sil function 'enclosing_def_reborrow'
192
192
// CHECK: Enclosing Defs:
193
193
// CHECK-NEXT: [[REBORROW]] = argument of bb1 : $C
194
- // CHECK-NEXT: enclosing_def_reborrow: find-enclosing-defs with: %reborrow_inner3
194
+ // CHECK-NEXT: enclosing_def_reborrow: find_enclosing_defs with: %reborrow_inner3
195
195
196
196
// CHECK-LABEL: enclosing_def_reborrow: enclosing_values with: %reborrow_inner3
197
197
// CHECK: sil [ossa] @enclosing_def_reborrow : $@convention(thin) (@guaranteed C) -> () {
@@ -210,7 +210,7 @@ bb2(%reborrow_outer : @guaranteed $C, %reborrow_inner : @guaranteed $C):
210
210
br bb3(%reborrow_inner : $C)
211
211
212
212
bb3(%reborrow_inner3 : @guaranteed $C):
213
- specify_test "find-enclosing-defs %reborrow_inner3"
213
+ specify_test "find_enclosing_defs %reborrow_inner3"
214
214
specify_test "enclosing_values %reborrow_inner3"
215
215
end_borrow %reborrow_inner3 : $C
216
216
end_borrow %reborrow_outer : $C
@@ -220,13 +220,13 @@ bb3(%reborrow_inner3 : @guaranteed $C):
220
220
221
221
// The enclosing def of a forwarding phi cycle is the reborrow phi cycle.
222
222
223
- // CHECK-LABEL: enclosing_def_cycle: find-enclosing-defs with: %forward
223
+ // CHECK-LABEL: enclosing_def_cycle: find_enclosing_defs with: %forward
224
224
// CHECK: sil [ossa] @enclosing_def_cycle : $@convention(thin) (@guaranteed C) -> () {
225
225
// CHECK: bb1([[REBORROW:%.*]] : @reborrow @guaranteed $C,
226
226
// CHECK: } // end sil function 'enclosing_def_cycle'
227
227
// CHECK: Enclosing Defs:
228
228
// CHECK-NEXT: [[REBORROW]] = argument of bb1 : $C
229
- // CHECK-NEXT: enclosing_def_cycle: find-enclosing-defs with: %forward
229
+ // CHECK-NEXT: enclosing_def_cycle: find_enclosing_defs with: %forward
230
230
231
231
// CHECK-LABEL: enclosing_def_cycle: enclosing_values with: %forward
232
232
// CHECK: sil [ossa] @enclosing_def_cycle : $@convention(thin) (@guaranteed C) -> () {
@@ -243,7 +243,7 @@ entry(%0 : @guaranteed $C):
243
243
br bb2(%borrow : $C, %first1 : $C)
244
244
245
245
bb2(%reborrow_outer : @guaranteed $C, %forward : @guaranteed $C):
246
- specify_test "find-enclosing-defs %forward"
246
+ specify_test "find_enclosing_defs %forward"
247
247
specify_test "enclosing_values %forward"
248
248
%aggregate2 = struct $PairC(%reborrow_outer : $C, %forward : $C)
249
249
%first2 = struct_extract %aggregate2 : $PairC, #PairC.first
0 commit comments