[Test] Underscored is_sil_trivial.

Use underscores rather than hyphens so that text editors understand the
name as a single word.
This commit is contained in:
Nate Chandler
2024-07-25 13:09:20 -07:00
parent d6071c636b
commit bf65f21cc8
2 changed files with 25 additions and 25 deletions

View File

@@ -1310,7 +1310,7 @@ namespace swift::test {
// - SILValue: value
// Dumps:
// - message
static FunctionTest IsSILTrivial("is-sil-trivial", [](auto &function,
static FunctionTest IsSILTrivial("is_sil_trivial", [](auto &function,
auto &arguments,
auto &test) {
SILValue value = arguments.takeValue();

View File

@@ -30,18 +30,18 @@ struct NC : ~Copyable {
@_hasStorage var value: FakeInt { get set }
}
// CHECK: begin running test 1 of 4 on motest1: is-sil-trivial with: @instruction[2]
// CHECK: begin running test 1 of 4 on motest1: is_sil_trivial with: @instruction[2]
// CHECK: %2 = struct $MO_DEINIT (%1 : $FakeInt)
// CHECK: is not trivial
// CHECK: end running test 1 of 4 on motest1: is-sil-trivial with: @instruction[2]
// CHECK: end running test 1 of 4 on motest1: is_sil_trivial with: @instruction[2]
// CHECK: begin running test 2 of 4 on motest1: get_ownership_kind with: @instruction[2]
// CHECK: %2 = struct $MO_DEINIT (%1 : $FakeInt)
// CHECK: OwnershipKind: owned
// CHECK: end running test 2 of 4 on motest1: get_ownership_kind with: @instruction[2]
// CHECK: begin running test 3 of 4 on motest1: is-sil-trivial with: @instruction[4]
// CHECK: begin running test 3 of 4 on motest1: is_sil_trivial with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $MO_DEINIT
// CHECK: is not trivial
// CHECK: end running test 3 of 4 on motest1: is-sil-trivial with: @instruction[4]
// CHECK: end running test 3 of 4 on motest1: is_sil_trivial with: @instruction[4]
// CHECK: begin running test 4 of 4 on motest1: get_ownership_kind with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $MO_DEINIT
// CHECK: OwnershipKind: owned
@@ -49,9 +49,9 @@ struct NC : ~Copyable {
sil hidden [ossa] @motest1 : $@convention(thin) () -> () {
[global: read,write,copy,destroy,allocate,deinit_barrier]
bb0:
specify_test "is-sil-trivial @instruction[2]"
specify_test "is_sil_trivial @instruction[2]"
specify_test "get_ownership_kind @instruction[2]"
specify_test "is-sil-trivial @instruction[4]"
specify_test "is_sil_trivial @instruction[4]"
specify_test "get_ownership_kind @instruction[4]"
%0 = integer_literal $Builtin.Int32, 38
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -63,18 +63,18 @@ bb0:
return %6 : $()
}
// CHECK: begin running test 1 of 4 on motest2: is-sil-trivial with: @instruction[2]
// CHECK: begin running test 1 of 4 on motest2: is_sil_trivial with: @instruction[2]
// CHECK: %2 = struct $MO (%1 : $FakeInt)
// CHECK: is not trivial
// CHECK: end running test 1 of 4 on motest2: is-sil-trivial with: @instruction[2]
// CHECK: end running test 1 of 4 on motest2: is_sil_trivial with: @instruction[2]
// CHECK: begin running test 2 of 4 on motest2: get_ownership_kind with: @instruction[2]
// CHECK: %2 = struct $MO (%1 : $FakeInt)
// CHECK: OwnershipKind: owned
// CHECK: end running test 2 of 4 on motest2: get_ownership_kind with: @instruction[2]
// CHECK: begin running test 3 of 4 on motest2: is-sil-trivial with: @instruction[4]
// CHECK: begin running test 3 of 4 on motest2: is_sil_trivial with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $MO
// CHECK: is not trivial
// CHECK: end running test 3 of 4 on motest2: is-sil-trivial with: @instruction[4]
// CHECK: end running test 3 of 4 on motest2: is_sil_trivial with: @instruction[4]
// CHECK: begin running test 4 of 4 on motest2: get_ownership_kind with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $MO
// CHECK: OwnershipKind: owned
@@ -82,9 +82,9 @@ bb0:
sil hidden [ossa] @motest2 : $@convention(thin) () -> () {
[global: read,write,copy,destroy,allocate,deinit_barrier]
bb0:
specify_test "is-sil-trivial @instruction[2]"
specify_test "is_sil_trivial @instruction[2]"
specify_test "get_ownership_kind @instruction[2]"
specify_test "is-sil-trivial @instruction[4]"
specify_test "is_sil_trivial @instruction[4]"
specify_test "get_ownership_kind @instruction[4]"
%0 = integer_literal $Builtin.Int32, 38
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -96,18 +96,18 @@ bb0:
return %6 : $()
}
// CHECK: begin running test 1 of 4 on nctest1: is-sil-trivial with: @instruction[2]
// CHECK: begin running test 1 of 4 on nctest1: is_sil_trivial with: @instruction[2]
// CHECK: %2 = struct $NC_DEINIT (%1 : $FakeInt)
// CHECK: is not trivial
// CHECK: end running test 1 of 4 on nctest1: is-sil-trivial with: @instruction[2]
// CHECK: end running test 1 of 4 on nctest1: is_sil_trivial with: @instruction[2]
// CHECK: begin running test 2 of 4 on nctest1: get_ownership_kind with: @instruction[2]
// CHECK: %2 = struct $NC_DEINIT (%1 : $FakeInt)
// CHECK: OwnershipKind: owned
// CHECK: end running test 2 of 4 on nctest1: get_ownership_kind with: @instruction[2]
// CHECK: begin running test 3 of 4 on nctest1: is-sil-trivial with: @instruction[4]
// CHECK: begin running test 3 of 4 on nctest1: is_sil_trivial with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $NC_DEINIT
// CHECK: is not trivial
// CHECK: end running test 3 of 4 on nctest1: is-sil-trivial with: @instruction[4]
// CHECK: end running test 3 of 4 on nctest1: is_sil_trivial with: @instruction[4]
// CHECK: begin running test 4 of 4 on nctest1: get_ownership_kind with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $NC_DEINIT
// CHECK: OwnershipKind: owned
@@ -116,9 +116,9 @@ bb0:
sil hidden [ossa] @nctest1 : $@convention(thin) () -> () {
[global: read,write,copy,destroy,allocate,deinit_barrier]
bb0:
specify_test "is-sil-trivial @instruction[2]"
specify_test "is_sil_trivial @instruction[2]"
specify_test "get_ownership_kind @instruction[2]"
specify_test "is-sil-trivial @instruction[4]"
specify_test "is_sil_trivial @instruction[4]"
specify_test "get_ownership_kind @instruction[4]"
%0 = integer_literal $Builtin.Int32, 38
%1 = struct $FakeInt (%0 : $Builtin.Int32)
@@ -130,18 +130,18 @@ bb0:
return %6 : $()
}
// CHECK: begin running test 1 of 4 on nctest2: is-sil-trivial with: @instruction[2]
// CHECK: begin running test 1 of 4 on nctest2: is_sil_trivial with: @instruction[2]
// CHECK: %2 = struct $NC (%1 : $FakeInt)
// CHECK: is not trivial
// CHECK: end running test 1 of 4 on nctest2: is-sil-trivial with: @instruction[2]
// CHECK: end running test 1 of 4 on nctest2: is_sil_trivial with: @instruction[2]
// CHECK: begin running test 2 of 4 on nctest2: get_ownership_kind with: @instruction[2]
// CHECK: %2 = struct $NC (%1 : $FakeInt)
// CHECK: OwnershipKind: owned
// CHECK: end running test 2 of 4 on nctest2: get_ownership_kind with: @instruction[2]
// CHECK: begin running test 3 of 4 on nctest2: is-sil-trivial with: @instruction[4]
// CHECK: begin running test 3 of 4 on nctest2: is_sil_trivial with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $NC
// CHECK: is not trivial
// CHECK: end running test 3 of 4 on nctest2: is-sil-trivial with: @instruction[4]
// CHECK: end running test 3 of 4 on nctest2: is_sil_trivial with: @instruction[4]
// CHECK: begin running test 4 of 4 on nctest2: get_ownership_kind with: @instruction[4]
// CHECK: %4 = move_value [lexical] %2 : $NC
// CHECK: OwnershipKind: owned
@@ -149,9 +149,9 @@ bb0:
sil hidden [ossa] @nctest2 : $@convention(thin) () -> () {
[global: read,write,copy,destroy,allocate,deinit_barrier]
bb0:
specify_test "is-sil-trivial @instruction[2]"
specify_test "is_sil_trivial @instruction[2]"
specify_test "get_ownership_kind @instruction[2]"
specify_test "is-sil-trivial @instruction[4]"
specify_test "is_sil_trivial @instruction[4]"
specify_test "get_ownership_kind @instruction[4]"
%0 = integer_literal $Builtin.Int32, 38
%1 = struct $FakeInt (%0 : $Builtin.Int32)