Skip to content

Commit de841fd

Browse files
committed
Fix a comment about SILCombine "passes" in Passes.def
1 parent 4595d5d commit de841fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@
6666
#endif
6767

6868
/// SWIFT_SILCOMBINE_PASS(Inst)
69-
/// Similar to SWIFT_FUNCTION_PASS, but defines an instruction pass which is
70-
/// implemented in swift and is run by the SILCombiner.
69+
/// Similar to SWIFT_FUNCTION_PASS, but defines an instruction simplification
70+
/// which is implemented in swift and is run by the SILCombiner.
7171
/// The \p Inst argument specifies the instruction class.
7272
///
7373
/// No further code is need on the C++ side. On the swift side an instruction
74-
/// pass must be registered for the instruction class with 'registerPass()'.
74+
/// simplification must be registered for the instruction class with
75+
/// `registerForSILCombine`.
7576
///
7677
#ifndef SWIFT_SILCOMBINE_PASS
7778
#define SWIFT_SILCOMBINE_PASS(Inst)

0 commit comments

Comments
 (0)