Skip to content

Commit 26e46f5

Browse files
authored
Merge pull request swiftlang#40780 from apple/maxd/libswift-docs
2 parents 9438cf6 + 9bcda66 commit 26e46f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftCompilerSources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ No yet implemented instruction classes are mapped to a "placeholder" instruction
135135

136136
Similar to SIL, the optimizer also uses a small bridging layer (`OptimizerBridging.h`).
137137
Passes are registered in `registerSwiftPasses()`, called from `initializeSwiftModules()`.
138-
The C++ PassManager can then call a Swift pass like any other `SILFunctionTransform` pass.
138+
The C++ `PassManager` can then call a Swift pass like any other `SILFunctionTransform` pass.
139139

140140
To add a new function pass:
141141

@@ -160,7 +160,7 @@ To add a new instruction pass:
160160
* create a new Swift file in `SwiftCompilerSources/Optimizer/InstructionPasses`
161161
* add an `InstructionPass` global
162162
* register the pass in `registerSwiftPasses()`
163-
* if this passes replaces an existing `SILCombiner` visit function, remove the old visit function
163+
* if this pass replaces an existing `SILCombiner` visit function, remove the old visit function
164164

165165
## Performance
166166

0 commit comments

Comments
 (0)