Skip to content

Commit 1e96d6a

Browse files
Merge pull request #75488 from nate-chandler/test/20240725/1
[Test] Replaced hyphens with underscores in SIL unit test names.
2 parents a1c30ac + 2e2a81b commit 1e96d6a

40 files changed

+518
-518
lines changed

include/swift/SIL/Test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class FunctionTest final {
148148
/// To create a new test, just write
149149
///
150150
/// namespace swift::test {
151-
/// static FunctionTest myTest("my-test", [](
151+
/// static FunctionTest myTest("my_new_test", [](
152152
/// SILFunction &function, Arguments &arguments, FunctionTest &test){
153153
/// // test code
154154
/// });

lib/SIL/IR/SILInstruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void SILInstruction::moveBefore(SILInstruction *Later) {
126126
}
127127

128128
namespace swift::test {
129-
FunctionTest MoveBeforeTest("instruction-move-before",
129+
FunctionTest MoveBeforeTest("instruction_move_before",
130130
[](auto &function, auto &arguments, auto &test) {
131131
auto *inst = arguments.takeInstruction();
132132
auto *other = arguments.takeInstruction();

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();

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();

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();

lib/SIL/Utils/FieldSensitivePrunedLiveness.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ namespace swift::test {
12121212
// locations. In that case, the def nodes may be stores and the uses may be
12131213
// destroy_addrs.
12141214
static FunctionTest FieldSensitiveMultiDefUseLiveRangeTest(
1215-
"fieldsensitive-multidefuse-liverange",
1215+
"fieldsensitive_multidefuse_liverange",
12161216
[](auto &function, auto &arguments, auto &test) {
12171217
SmallVector<SILBasicBlock *, 8> discoveredBlocks;
12181218
auto value = arguments.takeValue();

lib/SIL/Utils/OwnershipLiveness.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ namespace swift::test {
381381
// - function
382382
// - the computed pruned liveness
383383
// - the liveness boundary
384-
static FunctionTest LinearLivenessTest("linear-liveness", [](auto &function,
384+
static FunctionTest LinearLivenessTest("linear_liveness", [](auto &function,
385385
auto &arguments,
386386
auto &test) {
387387
SILValue value = arguments.takeValue();

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace swift::test {
103103
// - the value
104104
// - whether it has a pointer escape
105105
static FunctionTest OwnershipUtilsHasPointerEscape(
106-
"has-pointer-escape", [](auto &function, auto &arguments, auto &test) {
106+
"has_pointer_escape", [](auto &function, auto &arguments, auto &test) {
107107
auto value = arguments.takeValue();
108108
auto has = findPointerEscape(value);
109109
value->print(llvm::outs());
@@ -2144,7 +2144,7 @@ namespace swift::test {
21442144
// - function
21452145
// - the enclosing defs
21462146
static FunctionTest FindEnclosingDefsTest(
2147-
"find-enclosing-defs", [](auto &function, auto &arguments, auto &test) {
2147+
"find_enclosing_defs", [](auto &function, auto &arguments, auto &test) {
21482148
function.print(llvm::outs());
21492149
llvm::outs() << "Enclosing Defs:\n";
21502150
visitEnclosingDefs(arguments.takeValue(), [](SILValue def) {
@@ -2169,7 +2169,7 @@ namespace swift::test {
21692169
// - function
21702170
// - the borrow introducers
21712171
static FunctionTest FindBorrowIntroducers(
2172-
"find-borrow-introducers", [](auto &function, auto &arguments, auto &test) {
2172+
"find_borrow_introducers", [](auto &function, auto &arguments, auto &test) {
21732173
function.print(llvm::outs());
21742174
llvm::outs() << "Introducers:\n";
21752175
visitBorrowIntroducers(arguments.takeValue(), [](SILValue def) {
@@ -2288,7 +2288,7 @@ namespace swift::test {
22882288
// - function
22892289
// - the adjacent phis
22902290
static FunctionTest VisitInnerAdjacentPhisTest(
2291-
"visit-inner-adjacent-phis",
2291+
"visit_inner_adjacent_phis",
22922292
[](auto &function, auto &arguments, auto &test) {
22932293
function.print(llvm::outs());
22942294
visitInnerAdjacentPhis(cast<SILPhiArgument>(arguments.takeValue()),

lib/SIL/Utils/ScopedAddressUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ namespace swift::test {
113113
// Dumps:
114114
// - the liveness result and boundary
115115
static FunctionTest ScopedAddressLivenessTest(
116-
"scoped-address-liveness", [](auto &function, auto &arguments, auto &test) {
116+
"scoped_address_liveness", [](auto &function, auto &arguments, auto &test) {
117117
auto value = arguments.takeValue();
118118
assert(!arguments.hasUntaken());
119119
llvm::outs() << "Scoped address analysis: " << value;

lib/SILOptimizer/Analysis/BasicCalleeAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace swift::test {
9494
// Dumps:
9595
// - instruction
9696
// - whether it's a deinit barrier
97-
static FunctionTest IsDeinitBarrierTest("is-deinit-barrier", [](auto &function,
97+
static FunctionTest IsDeinitBarrierTest("is_deinit_barrier", [](auto &function,
9898
auto &arguments,
9999
auto &test) {
100100
auto *instruction = arguments.takeInstruction();

0 commit comments

Comments
 (0)