Skip to content

Commit 47a874a

Browse files
committed
[Test] Underscored is_lexical.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 3c18f53 commit 47a874a

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

lib/SIL/IR/SILValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ namespace swift::test {
162162
// Dumps:
163163
// - value
164164
// - whether it's lexical
165-
static FunctionTest IsLexicalTest("is-lexical", [](auto &function,
165+
static FunctionTest IsLexicalTest("is_lexical", [](auto &function,
166166
auto &arguments,
167167
auto &test) {
168168
auto value = arguments.takeValue();

test/SILOptimizer/lexical_unit.sil

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class C {}
88

99
sil [ossa] @getC : $@convention(thin) () -> (@owned C)
1010

11-
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_no_lexical: is-lexical
11+
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_no_lexical: is_lexical
1212
// CHECK: argument of bb3
1313
// CHECK: false
14-
// CHECK-LABEL: end running test 1 of 1 on phi_direct_no_lexical: is-lexical
14+
// CHECK-LABEL: end running test 1 of 1 on phi_direct_no_lexical: is_lexical
1515
sil [ossa] @phi_direct_no_lexical : $() -> () {
1616
entry:
1717
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -23,16 +23,16 @@ right:
2323
%c2 = apply %getC() : $@convention(thin) () -> (@owned C)
2424
br exit(%c2 : $C)
2525
exit(%cm : @owned $C):
26-
specify_test "is-lexical @block.argument"
26+
specify_test "is_lexical @block.argument"
2727
destroy_value %cm : $C
2828
%retval = tuple ()
2929
return %retval : $()
3030
}
3131

32-
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_first_lexical: is-lexical
32+
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_first_lexical: is_lexical
3333
// CHECK: argument of bb3
3434
// CHECK: true
35-
// CHECK-LABEL: end running test 1 of 1 on phi_direct_first_lexical: is-lexical
35+
// CHECK-LABEL: end running test 1 of 1 on phi_direct_first_lexical: is_lexical
3636
sil [ossa] @phi_direct_first_lexical : $() -> () {
3737
entry:
3838
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -45,16 +45,16 @@ right:
4545
%c2 = apply %getC() : $@convention(thin) () -> (@owned C)
4646
br exit(%c2 : $C)
4747
exit(%cm : @owned $C):
48-
specify_test "is-lexical @block.argument"
48+
specify_test "is_lexical @block.argument"
4949
destroy_value %cm : $C
5050
%retval = tuple ()
5151
return %retval : $()
5252
}
5353

54-
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_second_lexical: is-lexical
54+
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_second_lexical: is_lexical
5555
// CHECK: argument of bb3
5656
// CHECK: true
57-
// CHECK-LABEL: end running test 1 of 1 on phi_direct_second_lexical: is-lexical
57+
// CHECK-LABEL: end running test 1 of 1 on phi_direct_second_lexical: is_lexical
5858
sil [ossa] @phi_direct_second_lexical : $() -> () {
5959
entry:
6060
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -67,16 +67,16 @@ right:
6767
%m2 = move_value [lexical] %c2 : $C
6868
br exit(%m2 : $C)
6969
exit(%cm : @owned $C):
70-
specify_test "is-lexical @block.argument"
70+
specify_test "is_lexical @block.argument"
7171
destroy_value %cm : $C
7272
%retval = tuple ()
7373
return %retval : $()
7474
}
7575

76-
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_both_lexical: is-lexical
76+
// CHECK-LABEL: begin running test 1 of 1 on phi_direct_both_lexical: is_lexical
7777
// CHECK: argument of bb3
7878
// CHECK: true
79-
// CHECK-LABEL: end running test 1 of 1 on phi_direct_both_lexical: is-lexical
79+
// CHECK-LABEL: end running test 1 of 1 on phi_direct_both_lexical: is_lexical
8080
sil [ossa] @phi_direct_both_lexical : $() -> () {
8181
entry:
8282
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -90,16 +90,16 @@ right:
9090
%m2 = move_value [lexical] %c2 : $C
9191
br exit(%m2 : $C)
9292
exit(%cm : @owned $C):
93-
specify_test "is-lexical @block.argument"
93+
specify_test "is_lexical @block.argument"
9494
destroy_value %cm : $C
9595
%retval = tuple ()
9696
return %retval : $()
9797
}
9898

99-
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0000_lexical: is-lexical
99+
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0000_lexical: is_lexical
100100
// CHECK: argument of bb9
101101
// CHECK: false
102-
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0000_lexical: is-lexical
102+
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0000_lexical: is_lexical
103103
sil [ossa] @phi_indirect_0000_lexical : $() -> () {
104104
entry:
105105
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -128,16 +128,16 @@ rb(%cr : @owned $C):
128128
br exit(%cr : $C)
129129

130130
exit(%cm : @owned $C):
131-
specify_test "is-lexical @block.argument"
131+
specify_test "is_lexical @block.argument"
132132
destroy_value %cm : $C
133133
%retval = tuple ()
134134
return %retval : $()
135135
}
136136

137-
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_1000_lexical: is-lexical
137+
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_1000_lexical: is_lexical
138138
// CHECK: argument of bb9
139139
// CHECK: true
140-
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_1000_lexical: is-lexical
140+
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_1000_lexical: is_lexical
141141
sil [ossa] @phi_indirect_1000_lexical : $() -> () {
142142
entry:
143143
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -167,16 +167,16 @@ rb(%cr : @owned $C):
167167
br exit(%cr : $C)
168168

169169
exit(%cm : @owned $C):
170-
specify_test "is-lexical @block.argument"
170+
specify_test "is_lexical @block.argument"
171171
destroy_value %cm : $C
172172
%retval = tuple ()
173173
return %retval : $()
174174
}
175175

176-
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0100_lexical: is-lexical
176+
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0100_lexical: is_lexical
177177
// CHECK: argument of bb9
178178
// CHECK: true
179-
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0100_lexical: is-lexical
179+
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0100_lexical: is_lexical
180180
sil [ossa] @phi_indirect_0100_lexical : $() -> () {
181181
entry:
182182
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -206,16 +206,16 @@ rb(%cr : @owned $C):
206206
br exit(%cr : $C)
207207

208208
exit(%cm : @owned $C):
209-
specify_test "is-lexical @block.argument"
209+
specify_test "is_lexical @block.argument"
210210
destroy_value %cm : $C
211211
%retval = tuple ()
212212
return %retval : $()
213213
}
214214

215-
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0010_lexical: is-lexical
215+
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0010_lexical: is_lexical
216216
// CHECK: argument of bb9
217217
// CHECK: true
218-
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0010_lexical: is-lexical
218+
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0010_lexical: is_lexical
219219
sil [ossa] @phi_indirect_0010_lexical : $() -> () {
220220
entry:
221221
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -245,16 +245,16 @@ rb(%cr : @owned $C):
245245
br exit(%cr : $C)
246246

247247
exit(%cm : @owned $C):
248-
specify_test "is-lexical @block.argument"
248+
specify_test "is_lexical @block.argument"
249249
destroy_value %cm : $C
250250
%retval = tuple ()
251251
return %retval : $()
252252
}
253253

254-
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0001_lexical: is-lexical
254+
// CHECK-LABEL: begin running test 1 of 1 on phi_indirect_0001_lexical: is_lexical
255255
// CHECK: argument of bb9
256256
// CHECK: true
257-
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0001_lexical: is-lexical
257+
// CHECK-LABEL: end running test 1 of 1 on phi_indirect_0001_lexical: is_lexical
258258
sil [ossa] @phi_indirect_0001_lexical : $() -> () {
259259
entry:
260260
%getC = function_ref @getC : $@convention(thin) () -> (@owned C)
@@ -284,7 +284,7 @@ rb(%cr : @owned $C):
284284
br exit(%cr : $C)
285285

286286
exit(%cm : @owned $C):
287-
specify_test "is-lexical @block.argument"
287+
specify_test "is_lexical @block.argument"
288288
destroy_value %cm : $C
289289
%retval = tuple ()
290290
return %retval : $()

0 commit comments

Comments
 (0)