Skip to content

Commit 2e2a81b

Browse files
committed
[Test] Underscored dump_function.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 549b4a8 commit 2e2a81b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/SILOptimizer/UtilityPasses/TestRunner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void TestRunner::run() {
114114
// Arguments: NONE
115115
// Dumps:
116116
// - the function
117-
static FunctionTest DumpFunctionTest("dump-function",
117+
static FunctionTest DumpFunctionTest("dump_function",
118118
[](auto &function, auto &, auto &) {
119119
function.print(llvm::outs());
120120
});

test/SILOptimizer/deinit_barrier.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ sil [ossa] @empty_fn_caller_caller : $@convention(thin) () -> () {
3838
}
3939

4040

41-
// CHECK-LABEL: begin running test 1 of {{[0-9]+}} on call_functions: dump-function
41+
// CHECK-LABEL: begin running test 1 of {{[0-9]+}} on call_functions: dump_function
4242
// CHECK: [[EMPTY_FN:%[^,]+]] = function_ref @empty_fn
4343
// CHECK: [[EMPTY_FN_CALLER:%[^,]+]] = function_ref @empty_fn_caller
4444
// CHECK: [[EMPTY_FN_CALLER_CALLER:%[^,]+]] = function_ref @empty_fn_caller_caller
4545
// CHECK: [[UNKNOWN:%[^,]+]] = function_ref @unknown
4646
// CHECK: [[UNKNOWN_CALLER:%[^,]+]] = function_ref @unknown_caller
47-
// CHECK-LABEL: end running test 1 of {{[0-9]+}} on call_functions: dump-function
47+
// CHECK-LABEL: end running test 1 of {{[0-9]+}} on call_functions: dump_function
4848
// CHECK-LABEL: begin running test 2 of {{[0-9]+}} on call_functions: is_deinit_barrier
4949
// CHECK: apply [[EMPTY_FN]]
5050
// CHECK: false
@@ -67,7 +67,7 @@ sil [ossa] @empty_fn_caller_caller : $@convention(thin) () -> () {
6767
// CHECK-LABEL: end running test 6 of {{[0-9]+}} on call_functions: is_deinit_barrier
6868
sil [ossa] @call_functions : $@convention(thin) () -> () {
6969
entry:
70-
specify_test "dump-function"
70+
specify_test "dump_function"
7171
specify_test "is_deinit_barrier @instruction[1]"
7272
%empty_fn = function_ref @empty_fn : $@convention(thin) () -> ()
7373
apply %empty_fn() : $@convention(thin) () -> ()

test/SILOptimizer/pruned_liveness_boundary.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// RUN: %target-sil-opt -test-runner %s 2>&1 | %FileCheck %s
22

3-
// CHECK: begin running test 1 of {{[^,]+}} on last_uses_merge_points: dump-function
3+
// CHECK: begin running test 1 of {{[^,]+}} on last_uses_merge_points: dump_function
44
// CHECK: [[REGISTER_3:%[^,]+]] = tuple ()
55
// CHECK: return [[REGISTER_3]]
6-
// CHECK: end running test 1 of {{[^,]+}} on last_uses_merge_points: dump-function
6+
// CHECK: end running test 1 of {{[^,]+}} on last_uses_merge_points: dump_function
77
// CHECK: begin running test 2 of {{[^,]+}} on last_uses_merge_points: pruned_liveness_boundary_with_list_of_last_users_insertion_points
88
// CHECK: [[REGISTER_3]] = tuple ()
99
// CHECK: end running test 2 of {{[^,]+}} on last_uses_merge_points: pruned_liveness_boundary_with_list_of_last_users_insertion_points
1010
sil [ossa] @last_uses_merge_points : $@convention(thin) () -> () {
1111
entry:
12-
specify_test "dump-function"
12+
specify_test "dump_function"
1313
specify_test "pruned_liveness_boundary_with_list_of_last_users_insertion_points @block[1].instruction[0] @block[2].instruction[0]"
1414
cond_br undef, left, right
1515
left:

0 commit comments

Comments
 (0)