|
45 | 45 |
|
46 | 46 | /// SWIFT_FUNCTION_PASS(Id, Tag, Description)
|
47 | 47 | /// This macro follows the same conventions as PASS(Id, Tag, Description),
|
48 |
| -/// but is used for function passes which are implemented in libswift. |
| 48 | +/// but is used for function passes which are implemented in Swift. |
49 | 49 | ///
|
50 |
| -/// No further code is need on the C++ side. In libswift a function pass with |
51 |
| -/// the same name must be registered with 'registerPass()'. |
| 50 | +/// No further code is need on the C++ side. On the swift swift a function |
| 51 | +/// pass with the same name must be registered with 'registerPass()'. |
52 | 52 | ///
|
53 | 53 | #ifndef SWIFT_FUNCTION_PASS
|
54 | 54 | #define SWIFT_FUNCTION_PASS(Id, Tag, Description) PASS(Id, Tag, Description)
|
55 | 55 | #endif
|
56 | 56 |
|
57 | 57 | /// SWIFT_FUNCTION_PASS_WITH_LEGACY(Id, Tag, Description)
|
58 |
| -/// Like SWIFT_FUNCTION_PASS, but the a C++ legacy pass is used if the not |
59 |
| -/// built with libswift. |
| 58 | +/// Like SWIFT_FUNCTION_PASS, but a C++ legacy pass is used if the Swift pass |
| 59 | +/// is not registered. |
60 | 60 | /// The C++ legacy creation function must be named 'createLegacy<Id>'
|
61 | 61 | ///
|
62 | 62 | #ifndef SWIFT_FUNCTION_PASS_WITH_LEGACY
|
|
66 | 66 |
|
67 | 67 | /// SWIFT_INSTRUCTION_PASS(Inst, Tag)
|
68 | 68 | /// Similar to SWIFT_FUNCTION_PASS, but defines an instruction pass which is
|
69 |
| -/// implemented in libswift and is run by the SILCombiner. |
| 69 | +/// implemented in swift and is run by the SILCombiner. |
70 | 70 | /// The \p Inst argument specifies the instruction class, and \p Tag a name
|
71 | 71 | /// for the pass.
|
72 | 72 | ///
|
73 |
| -/// No further code is need on the C++ side. In libswift an instruction pass |
74 |
| -/// with the same name must be registered with 'registerPass()'. |
| 73 | +/// No further code is need on the C++ side. On the swift side an instruction |
| 74 | +/// pass with the same name must be registered with 'registerPass()'. |
75 | 75 | ///
|
76 | 76 | #ifndef SWIFT_INSTRUCTION_PASS
|
77 | 77 | #define SWIFT_INSTRUCTION_PASS(Inst, Tag)
|
78 | 78 | #endif
|
79 | 79 |
|
80 | 80 | /// SWIFT_INSTRUCTION_PASS_WITH_LEGACY(Inst, Tag)
|
81 | 81 | /// Like SWIFT_INSTRUCTION_PASS, but the a C++ legacy SILCombine visit
|
82 |
| -/// function is used if the not |
83 |
| -/// built with libswift. |
| 82 | +/// function is used if the swift pass is not registered. |
84 | 83 | /// The C++ legacy visit function must be named
|
85 | 84 | /// 'SILCombiner::legacyVisit<Inst>'.
|
86 | 85 | ///
|
|
0 commit comments