Skip to content

Commit bf65f21

Browse files
committed
[Test] Underscored is_sil_trivial.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent d6071c6 commit bf65f21

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

lib/SIL/IR/SILType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ namespace swift::test {
13101310
// - SILValue: value
13111311
// Dumps:
13121312
// - message
1313-
static FunctionTest IsSILTrivial("is-sil-trivial", [](auto &function,
1313+
static FunctionTest IsSILTrivial("is_sil_trivial", [](auto &function,
13141314
auto &arguments,
13151315
auto &test) {
13161316
SILValue value = arguments.takeValue();

test/SIL/moveonly_ownership.sil

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@ struct NC : ~Copyable {
3030
@_hasStorage var value: FakeInt { get set }
3131
}
3232

33-
// CHECK: begin running test 1 of 4 on motest1: is-sil-trivial with: @instruction[2]
33+
// CHECK: begin running test 1 of 4 on motest1: is_sil_trivial with: @instruction[2]
3434
// CHECK: %2 = struct $MO_DEINIT (%1 : $FakeInt)
3535
// CHECK: is not trivial
36-
// CHECK: end running test 1 of 4 on motest1: is-sil-trivial with: @instruction[2]
36+
// CHECK: end running test 1 of 4 on motest1: is_sil_trivial with: @instruction[2]
3737
// CHECK: begin running test 2 of 4 on motest1: get_ownership_kind with: @instruction[2]
3838
// CHECK: %2 = struct $MO_DEINIT (%1 : $FakeInt)
3939
// CHECK: OwnershipKind: owned
4040
// CHECK: end running test 2 of 4 on motest1: get_ownership_kind with: @instruction[2]
41-
// CHECK: begin running test 3 of 4 on motest1: is-sil-trivial with: @instruction[4]
41+
// CHECK: begin running test 3 of 4 on motest1: is_sil_trivial with: @instruction[4]
4242
// CHECK: %4 = move_value [lexical] %2 : $MO_DEINIT
4343
// CHECK: is not trivial
44-
// CHECK: end running test 3 of 4 on motest1: is-sil-trivial with: @instruction[4]
44+
// CHECK: end running test 3 of 4 on motest1: is_sil_trivial with: @instruction[4]
4545
// CHECK: begin running test 4 of 4 on motest1: get_ownership_kind with: @instruction[4]
4646
// CHECK: %4 = move_value [lexical] %2 : $MO_DEINIT
4747
// CHECK: OwnershipKind: owned
4848
// CHECK: end running test 4 of 4 on motest1: get_ownership_kind with: @instruction[4]
4949
sil hidden [ossa] @motest1 : $@convention(thin) () -> () {
5050
[global: read,write,copy,destroy,allocate,deinit_barrier]
5151
bb0:
52-
specify_test "is-sil-trivial @instruction[2]"
52+
specify_test "is_sil_trivial @instruction[2]"
5353
specify_test "get_ownership_kind @instruction[2]"
54-
specify_test "is-sil-trivial @instruction[4]"
54+
specify_test "is_sil_trivial @instruction[4]"
5555
specify_test "get_ownership_kind @instruction[4]"
5656
%0 = integer_literal $Builtin.Int32, 38
5757
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -63,28 +63,28 @@ bb0:
6363
return %6 : $()
6464
}
6565

66-
// CHECK: begin running test 1 of 4 on motest2: is-sil-trivial with: @instruction[2]
66+
// CHECK: begin running test 1 of 4 on motest2: is_sil_trivial with: @instruction[2]
6767
// CHECK: %2 = struct $MO (%1 : $FakeInt)
6868
// CHECK: is not trivial
69-
// CHECK: end running test 1 of 4 on motest2: is-sil-trivial with: @instruction[2]
69+
// CHECK: end running test 1 of 4 on motest2: is_sil_trivial with: @instruction[2]
7070
// CHECK: begin running test 2 of 4 on motest2: get_ownership_kind with: @instruction[2]
7171
// CHECK: %2 = struct $MO (%1 : $FakeInt)
7272
// CHECK: OwnershipKind: owned
7373
// CHECK: end running test 2 of 4 on motest2: get_ownership_kind with: @instruction[2]
74-
// CHECK: begin running test 3 of 4 on motest2: is-sil-trivial with: @instruction[4]
74+
// CHECK: begin running test 3 of 4 on motest2: is_sil_trivial with: @instruction[4]
7575
// CHECK: %4 = move_value [lexical] %2 : $MO
7676
// CHECK: is not trivial
77-
// CHECK: end running test 3 of 4 on motest2: is-sil-trivial with: @instruction[4]
77+
// CHECK: end running test 3 of 4 on motest2: is_sil_trivial with: @instruction[4]
7878
// CHECK: begin running test 4 of 4 on motest2: get_ownership_kind with: @instruction[4]
7979
// CHECK: %4 = move_value [lexical] %2 : $MO
8080
// CHECK: OwnershipKind: owned
8181
// CHECK: end running test 4 of 4 on motest2: get_ownership_kind with: @instruction[4]
8282
sil hidden [ossa] @motest2 : $@convention(thin) () -> () {
8383
[global: read,write,copy,destroy,allocate,deinit_barrier]
8484
bb0:
85-
specify_test "is-sil-trivial @instruction[2]"
85+
specify_test "is_sil_trivial @instruction[2]"
8686
specify_test "get_ownership_kind @instruction[2]"
87-
specify_test "is-sil-trivial @instruction[4]"
87+
specify_test "is_sil_trivial @instruction[4]"
8888
specify_test "get_ownership_kind @instruction[4]"
8989
%0 = integer_literal $Builtin.Int32, 38
9090
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -96,18 +96,18 @@ bb0:
9696
return %6 : $()
9797
}
9898

99-
// CHECK: begin running test 1 of 4 on nctest1: is-sil-trivial with: @instruction[2]
99+
// CHECK: begin running test 1 of 4 on nctest1: is_sil_trivial with: @instruction[2]
100100
// CHECK: %2 = struct $NC_DEINIT (%1 : $FakeInt)
101101
// CHECK: is not trivial
102-
// CHECK: end running test 1 of 4 on nctest1: is-sil-trivial with: @instruction[2]
102+
// CHECK: end running test 1 of 4 on nctest1: is_sil_trivial with: @instruction[2]
103103
// CHECK: begin running test 2 of 4 on nctest1: get_ownership_kind with: @instruction[2]
104104
// CHECK: %2 = struct $NC_DEINIT (%1 : $FakeInt)
105105
// CHECK: OwnershipKind: owned
106106
// CHECK: end running test 2 of 4 on nctest1: get_ownership_kind with: @instruction[2]
107-
// CHECK: begin running test 3 of 4 on nctest1: is-sil-trivial with: @instruction[4]
107+
// CHECK: begin running test 3 of 4 on nctest1: is_sil_trivial with: @instruction[4]
108108
// CHECK: %4 = move_value [lexical] %2 : $NC_DEINIT
109109
// CHECK: is not trivial
110-
// CHECK: end running test 3 of 4 on nctest1: is-sil-trivial with: @instruction[4]
110+
// CHECK: end running test 3 of 4 on nctest1: is_sil_trivial with: @instruction[4]
111111
// CHECK: begin running test 4 of 4 on nctest1: get_ownership_kind with: @instruction[4]
112112
// CHECK: %4 = move_value [lexical] %2 : $NC_DEINIT
113113
// CHECK: OwnershipKind: owned
@@ -116,9 +116,9 @@ bb0:
116116
sil hidden [ossa] @nctest1 : $@convention(thin) () -> () {
117117
[global: read,write,copy,destroy,allocate,deinit_barrier]
118118
bb0:
119-
specify_test "is-sil-trivial @instruction[2]"
119+
specify_test "is_sil_trivial @instruction[2]"
120120
specify_test "get_ownership_kind @instruction[2]"
121-
specify_test "is-sil-trivial @instruction[4]"
121+
specify_test "is_sil_trivial @instruction[4]"
122122
specify_test "get_ownership_kind @instruction[4]"
123123
%0 = integer_literal $Builtin.Int32, 38
124124
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -130,28 +130,28 @@ bb0:
130130
return %6 : $()
131131
}
132132

133-
// CHECK: begin running test 1 of 4 on nctest2: is-sil-trivial with: @instruction[2]
133+
// CHECK: begin running test 1 of 4 on nctest2: is_sil_trivial with: @instruction[2]
134134
// CHECK: %2 = struct $NC (%1 : $FakeInt)
135135
// CHECK: is not trivial
136-
// CHECK: end running test 1 of 4 on nctest2: is-sil-trivial with: @instruction[2]
136+
// CHECK: end running test 1 of 4 on nctest2: is_sil_trivial with: @instruction[2]
137137
// CHECK: begin running test 2 of 4 on nctest2: get_ownership_kind with: @instruction[2]
138138
// CHECK: %2 = struct $NC (%1 : $FakeInt)
139139
// CHECK: OwnershipKind: owned
140140
// CHECK: end running test 2 of 4 on nctest2: get_ownership_kind with: @instruction[2]
141-
// CHECK: begin running test 3 of 4 on nctest2: is-sil-trivial with: @instruction[4]
141+
// CHECK: begin running test 3 of 4 on nctest2: is_sil_trivial with: @instruction[4]
142142
// CHECK: %4 = move_value [lexical] %2 : $NC
143143
// CHECK: is not trivial
144-
// CHECK: end running test 3 of 4 on nctest2: is-sil-trivial with: @instruction[4]
144+
// CHECK: end running test 3 of 4 on nctest2: is_sil_trivial with: @instruction[4]
145145
// CHECK: begin running test 4 of 4 on nctest2: get_ownership_kind with: @instruction[4]
146146
// CHECK: %4 = move_value [lexical] %2 : $NC
147147
// CHECK: OwnershipKind: owned
148148
// CHECK: end running test 4 of 4 on nctest2: get_ownership_kind with: @instruction[4]
149149
sil hidden [ossa] @nctest2 : $@convention(thin) () -> () {
150150
[global: read,write,copy,destroy,allocate,deinit_barrier]
151151
bb0:
152-
specify_test "is-sil-trivial @instruction[2]"
152+
specify_test "is_sil_trivial @instruction[2]"
153153
specify_test "get_ownership_kind @instruction[2]"
154-
specify_test "is-sil-trivial @instruction[4]"
154+
specify_test "is_sil_trivial @instruction[4]"
155155
specify_test "get_ownership_kind @instruction[4]"
156156
%0 = integer_literal $Builtin.Int32, 38
157157
%1 = struct $FakeInt (%0 : $Builtin.Int32)

0 commit comments

Comments
 (0)