Skip to content

Commit 7f335b6

Browse files
committed
[Test] Updated comment.
1 parent 8072793 commit 7f335b6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

include/swift/SIL/Test.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// - #include "swift/SIL/Test.h"
1616
// - namespace swift::test {
1717
// static FunctionTest MyNewTest(
18-
// "my-new-test",
18+
// "my_new_test",
1919
// [](auto &function, auto &arguments, auto &test) {
2020
// });
2121
// } // end namespace swift::test
@@ -43,8 +43,8 @@
4343
// and
4444
//
4545
// static FunctionTest MyNeatoUtilityTest(
46-
// "my-neato-utility",
47-
// [](auto *test, auto *function, auto &arguments) {
46+
// "my_neato_utility",
47+
// [](auto &function, auto &arguments, auto &test) {
4848
// // The code here is described in detail below.
4949
// // See 4).
5050
// auto count = arguments.takeUInt();
@@ -53,7 +53,7 @@
5353
// // See 5)
5454
// myNeatoUtility(count, target, callee);
5555
// // See 6)
56-
// getFunction()->dump();
56+
// function.dump();
5757
// });
5858
// 1) A test test/SILOptimizer/interesting_functionality_unit.sil runs the
5959
// TestRunner pass:
@@ -62,13 +62,14 @@
6262
// specify_test instruction.
6363
// sil @f : $() -> () {
6464
// ...
65-
// specify_test "my-neato-utility 43 @trace[2] @function[other_fun]"
65+
// specify_test "my_neato_utility 43 %2 @function[other_fun]"
6666
// ...
6767
// }
6868
// 3) TestRunner finds the FunctionTest instance MyNeatoUtilityTest registered
69-
// under the name "my-neato-utility", and calls ::run() on it, passing an
70-
// the pass, the function AND most importantly an test::Arguments instance
71-
// that contains
69+
// under the name "my_neato_utility", and calls ::run() on it, passing first
70+
// the function, last the test::FunctionTest instance, AND in the middle,
71+
// most importantly a test::Arguments instance that contains
72+
//
7273
// (43 : unsigned long, someValue : SILValue, other_fun : SILFunction *)
7374
//
7475
// 4) MyNeatoUtilityTest calls takeUInt(), takeValue(), and takeFunction() on
@@ -84,7 +85,7 @@
8485
// myNeatoUtility(count, target, callee);
8586
// 6) MyNeatoUtilityTest then dumps out the current function, which was modified
8687
// in the process.
87-
// getFunction()->dump();
88+
// function.dump()
8889
// 7) The test file test/SILOptimizer/interesting_functionality_unit.sil matches
8990
// the
9091
// expected contents of the modified function:

0 commit comments

Comments
 (0)