|
1 |
| -//===- CanonicalizeOSSALifetime.h - Canonicalize OSSA lifetimes -*- C++ -*-===// |
| 1 | +//===- OSSACanonicalizeOwned.h - Canonicalize OSSA lifetimes -*- C++ -*-===// |
2 | 2 | //
|
3 | 3 | // This source file is part of the Swift.org open source project
|
4 | 4 | //
|
|
14 | 14 | ///
|
15 | 15 | /// This top-level API rewrites the extended OSSA lifetime of a SILValue:
|
16 | 16 | ///
|
17 |
| -/// void canonicalizeValueLifetime(SILValue def, CanonicalizeOSSALifetime &) |
| 17 | +/// void canonicalizeValueLifetime(SILValue def, OSSACanonicalizeOwned &) |
18 | 18 | ///
|
19 | 19 | /// The "extended lifetime" of the references defined by 'def' transitively
|
20 | 20 | /// includes the uses of 'def' itself along with the uses of any copies of
|
@@ -197,7 +197,7 @@ enum MaximizeLifetime_t : bool {
|
197 | 197 | ///
|
198 | 198 | /// TODO: Move all the private per-definition members into an implementation
|
199 | 199 | /// class in the .cpp file.
|
200 |
| -class CanonicalizeOSSALifetime final { |
| 200 | +class OSSACanonicalizeOwned final { |
201 | 201 | public:
|
202 | 202 | /// Find the original definition of a potentially copied value. \p copiedValue
|
203 | 203 | /// must be an owned value. It is usually a copy but may also be a destroy.
|
@@ -343,14 +343,14 @@ class CanonicalizeOSSALifetime final {
|
343 | 343 | struct LivenessState {
|
344 | 344 | BitfieldRef<SSAPrunedLiveness>::StackState state;
|
345 | 345 |
|
346 |
| - LivenessState(CanonicalizeOSSALifetime &parent, SILValue def, |
| 346 | + LivenessState(OSSACanonicalizeOwned &parent, SILValue def, |
347 | 347 | ArrayRef<SILInstruction *> lexicalLifetimeEnds)
|
348 | 348 | : state(parent.liveness, def->getFunction()) {
|
349 | 349 | parent.initializeLiveness(def, lexicalLifetimeEnds);
|
350 | 350 | }
|
351 | 351 | };
|
352 | 352 |
|
353 |
| - CanonicalizeOSSALifetime( |
| 353 | + OSSACanonicalizeOwned( |
354 | 354 | PruneDebugInsts_t pruneDebugMode, MaximizeLifetime_t maximizeLifetime,
|
355 | 355 | SILFunction *function, NonLocalAccessBlockAnalysis *accessBlockAnalysis,
|
356 | 356 | DeadEndBlocksAnalysis *deadEndBlocksAnalysis, DominanceInfo *domTree,
|
|
0 commit comments