Skip to content

Commit d6071c6

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

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

lib/SIL/IR/ValueOwnership.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ namespace swift::test {
725725
// - SILValue: value
726726
// Dumps:
727727
// - message
728-
static FunctionTest GetOwnershipKind("get-ownership-kind", [](auto &function,
728+
static FunctionTest GetOwnershipKind("get_ownership_kind", [](auto &function,
729729
auto &arguments,
730730
auto &test) {
731731
SILValue value = arguments.takeValue();

test/SIL/moveonly_ownership.sil

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,25 @@ struct NC : ~Copyable {
3434
// CHECK: %2 = struct $MO_DEINIT (%1 : $FakeInt)
3535
// CHECK: is not trivial
3636
// CHECK: end running test 1 of 4 on motest1: is-sil-trivial with: @instruction[2]
37-
// CHECK: begin running test 2 of 4 on motest1: get-ownership-kind with: @instruction[2]
37+
// 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
40-
// CHECK: end running test 2 of 4 on motest1: get-ownership-kind with: @instruction[2]
40+
// CHECK: end running test 2 of 4 on motest1: get_ownership_kind with: @instruction[2]
4141
// 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
4444
// CHECK: end running test 3 of 4 on motest1: is-sil-trivial with: @instruction[4]
45-
// CHECK: begin running test 4 of 4 on motest1: get-ownership-kind with: @instruction[4]
45+
// 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
48-
// CHECK: end running test 4 of 4 on motest1: get-ownership-kind with: @instruction[4]
48+
// 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:
5252
specify_test "is-sil-trivial @instruction[2]"
53-
specify_test "get-ownership-kind @instruction[2]"
53+
specify_test "get_ownership_kind @instruction[2]"
5454
specify_test "is-sil-trivial @instruction[4]"
55-
specify_test "get-ownership-kind @instruction[4]"
55+
specify_test "get_ownership_kind @instruction[4]"
5656
%0 = integer_literal $Builtin.Int32, 38
5757
%1 = struct $FakeInt (%0 : $Builtin.Int32)
5858
%2 = struct $MO_DEINIT (%1 : $FakeInt)
@@ -67,25 +67,25 @@ bb0:
6767
// CHECK: %2 = struct $MO (%1 : $FakeInt)
6868
// CHECK: is not trivial
6969
// CHECK: end running test 1 of 4 on motest2: is-sil-trivial with: @instruction[2]
70-
// CHECK: begin running test 2 of 4 on motest2: get-ownership-kind with: @instruction[2]
70+
// 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
73-
// CHECK: end running test 2 of 4 on motest2: get-ownership-kind with: @instruction[2]
73+
// CHECK: end running test 2 of 4 on motest2: get_ownership_kind with: @instruction[2]
7474
// 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
7777
// CHECK: end running test 3 of 4 on motest2: is-sil-trivial with: @instruction[4]
78-
// CHECK: begin running test 4 of 4 on motest2: get-ownership-kind with: @instruction[4]
78+
// 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
81-
// CHECK: end running test 4 of 4 on motest2: get-ownership-kind with: @instruction[4]
81+
// 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:
8585
specify_test "is-sil-trivial @instruction[2]"
86-
specify_test "get-ownership-kind @instruction[2]"
86+
specify_test "get_ownership_kind @instruction[2]"
8787
specify_test "is-sil-trivial @instruction[4]"
88-
specify_test "get-ownership-kind @instruction[4]"
88+
specify_test "get_ownership_kind @instruction[4]"
8989
%0 = integer_literal $Builtin.Int32, 38
9090
%1 = struct $FakeInt (%0 : $Builtin.Int32)
9191
%2 = struct $MO (%1 : $FakeInt)
@@ -100,26 +100,26 @@ bb0:
100100
// CHECK: %2 = struct $NC_DEINIT (%1 : $FakeInt)
101101
// CHECK: is not trivial
102102
// CHECK: end running test 1 of 4 on nctest1: is-sil-trivial with: @instruction[2]
103-
// CHECK: begin running test 2 of 4 on nctest1: get-ownership-kind with: @instruction[2]
103+
// 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
106-
// CHECK: end running test 2 of 4 on nctest1: get-ownership-kind with: @instruction[2]
106+
// CHECK: end running test 2 of 4 on nctest1: get_ownership_kind with: @instruction[2]
107107
// 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
110110
// CHECK: end running test 3 of 4 on nctest1: is-sil-trivial with: @instruction[4]
111-
// CHECK: begin running test 4 of 4 on nctest1: get-ownership-kind with: @instruction[4]
111+
// 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
114-
// CHECK: end running test 4 of 4 on nctest1: get-ownership-kind with: @instruction[4]
114+
// CHECK: end running test 4 of 4 on nctest1: get_ownership_kind with: @instruction[4]
115115

116116
sil hidden [ossa] @nctest1 : $@convention(thin) () -> () {
117117
[global: read,write,copy,destroy,allocate,deinit_barrier]
118118
bb0:
119119
specify_test "is-sil-trivial @instruction[2]"
120-
specify_test "get-ownership-kind @instruction[2]"
120+
specify_test "get_ownership_kind @instruction[2]"
121121
specify_test "is-sil-trivial @instruction[4]"
122-
specify_test "get-ownership-kind @instruction[4]"
122+
specify_test "get_ownership_kind @instruction[4]"
123123
%0 = integer_literal $Builtin.Int32, 38
124124
%1 = struct $FakeInt (%0 : $Builtin.Int32)
125125
%2 = struct $NC_DEINIT (%1 : $FakeInt)
@@ -134,25 +134,25 @@ bb0:
134134
// CHECK: %2 = struct $NC (%1 : $FakeInt)
135135
// CHECK: is not trivial
136136
// CHECK: end running test 1 of 4 on nctest2: is-sil-trivial with: @instruction[2]
137-
// CHECK: begin running test 2 of 4 on nctest2: get-ownership-kind with: @instruction[2]
137+
// 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
140-
// CHECK: end running test 2 of 4 on nctest2: get-ownership-kind with: @instruction[2]
140+
// CHECK: end running test 2 of 4 on nctest2: get_ownership_kind with: @instruction[2]
141141
// 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
144144
// CHECK: end running test 3 of 4 on nctest2: is-sil-trivial with: @instruction[4]
145-
// CHECK: begin running test 4 of 4 on nctest2: get-ownership-kind with: @instruction[4]
145+
// 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
148-
// CHECK: end running test 4 of 4 on nctest2: get-ownership-kind with: @instruction[4]
148+
// 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:
152152
specify_test "is-sil-trivial @instruction[2]"
153-
specify_test "get-ownership-kind @instruction[2]"
153+
specify_test "get_ownership_kind @instruction[2]"
154154
specify_test "is-sil-trivial @instruction[4]"
155-
specify_test "get-ownership-kind @instruction[4]"
155+
specify_test "get_ownership_kind @instruction[4]"
156156
%0 = integer_literal $Builtin.Int32, 38
157157
%1 = struct $FakeInt (%0 : $Builtin.Int32)
158158
%2 = struct $NC (%1 : $FakeInt)

0 commit comments

Comments
 (0)