@@ -244,7 +244,7 @@ static void extendLifetimeToEndOfFunction(SILFunction &fn,
244244 // lifetime respecting loops.
245245 SmallVector<SILPhiArgument *, 8 > insertedPhis;
246246 SILSSAUpdater updater (&insertedPhis);
247- updater.Initialize (optionalEscapingClosureTy);
247+ updater.initialize (optionalEscapingClosureTy);
248248
249249 // Create an Optional<() -> ()>.none in the entry block of the function and
250250 // add it as an available value to the SSAUpdater.
@@ -256,7 +256,7 @@ static void extendLifetimeToEndOfFunction(SILFunction &fn,
256256 SILBuilderWithScope b (fn.getEntryBlock ()->begin ());
257257 return b.createOptionalNone (loc, optionalEscapingClosureTy);
258258 }();
259- updater.AddAvailableValue (fn.getEntryBlock (), entryBlockOptionalNone);
259+ updater.addAvailableValue (fn.getEntryBlock (), entryBlockOptionalNone);
260260
261261 // Create a copy of the convert_escape_to_no_escape and add it as an available
262262 // value to the SSA updater.
@@ -270,7 +270,7 @@ static void extendLifetimeToEndOfFunction(SILFunction &fn,
270270 cvt->setLifetimeGuaranteed ();
271271 cvt->setOperand (innerCVI);
272272 SILBuilderWithScope b (std::next (cvt->getIterator ()));
273- updater.AddAvailableValue (
273+ updater.addAvailableValue (
274274 cvt->getParent (),
275275 b.createOptionalSome (loc, innerCVI, optionalEscapingClosureTy));
276276 return innerCVI;
@@ -284,13 +284,13 @@ static void extendLifetimeToEndOfFunction(SILFunction &fn,
284284 {
285285 // Before the copy value, insert an extra destroy_value to handle
286286 // loops. Since we used our enum value this is safe.
287- SILValue v = updater.GetValueInMiddleOfBlock (cvi->getParent ());
287+ SILValue v = updater.getValueInMiddleOfBlock (cvi->getParent ());
288288 SILBuilderWithScope (cvi).createDestroyValue (loc, v);
289289 }
290290
291291 for (auto *block : exitingBlocks) {
292292 auto *safeDestructionPt = getDeinitSafeClosureDestructionPoint (block);
293- SILValue v = updater.GetValueAtEndOfBlock (block);
293+ SILValue v = updater.getValueAtEndOfBlock (block);
294294 SILBuilderWithScope (safeDestructionPt).createDestroyValue (loc, v);
295295 }
296296
@@ -849,15 +849,15 @@ static bool fixupCopyBlockWithoutEscaping(CopyBlockWithoutEscapingInst *cb,
849849
850850 SmallVector<SILPhiArgument *, 8 > insertedPhis;
851851 SILSSAUpdater updater (&insertedPhis);
852- updater.Initialize (optionalEscapingClosureTy);
852+ updater.initialize (optionalEscapingClosureTy);
853853
854854 // Create the Optional.none as the beginning available value.
855855 SILValue entryBlockOptionalNone;
856856 {
857857 SILBuilderWithScope b (fn.getEntryBlock ()->begin ());
858858 entryBlockOptionalNone =
859859 b.createOptionalNone (autoGenLoc, optionalEscapingClosureTy);
860- updater.AddAvailableValue (fn.getEntryBlock (), entryBlockOptionalNone);
860+ updater.addAvailableValue (fn.getEntryBlock (), entryBlockOptionalNone);
861861 }
862862 assert (entryBlockOptionalNone);
863863
@@ -872,7 +872,7 @@ static bool fixupCopyBlockWithoutEscaping(CopyBlockWithoutEscapingInst *cb,
872872 // operand consumed at +1, so we don't need a copy) to it.
873873 auto *result = b.createOptionalSome (autoGenLoc, sentinelClosure,
874874 optionalEscapingClosureTy);
875- updater.AddAvailableValue (result->getParent (), result);
875+ updater.addAvailableValue (result->getParent (), result);
876876 return result;
877877 }();
878878
@@ -881,22 +881,22 @@ static bool fixupCopyBlockWithoutEscaping(CopyBlockWithoutEscapingInst *cb,
881881 if (singleDestroy) {
882882 SILBuilderWithScope b (std::next (singleDestroy->getIterator ()));
883883 auto *result = b.createOptionalNone (autoGenLoc, optionalEscapingClosureTy);
884- updater.AddAvailableValue (result->getParent (), result);
884+ updater.addAvailableValue (result->getParent (), result);
885885 }
886886
887887 // Now that we have all of our available values, insert a destroy_value before
888888 // the initial Optional.some value using the SSA updater to ensure that we
889889 // handle loops correctly.
890890 {
891- SILValue v = updater.GetValueInMiddleOfBlock (initialValue->getParent ());
891+ SILValue v = updater.getValueInMiddleOfBlock (initialValue->getParent ());
892892 SILBuilderWithScope (initialValue).createDestroyValue (autoGenLoc, v);
893893 }
894894
895895 // And insert an is_escaping_closure, cond_fail, destroy_value at each of the
896896 // lifetime end points. This ensures we do not expand our lifetime too much.
897897 if (singleDestroy) {
898898 SILBuilderWithScope b (std::next (singleDestroy->getIterator ()));
899- SILValue v = updater.GetValueInMiddleOfBlock (singleDestroy->getParent ());
899+ SILValue v = updater.getValueInMiddleOfBlock (singleDestroy->getParent ());
900900 SILValue isEscaping =
901901 b.createIsEscapingClosure (loc, v, IsEscapingClosureInst::ObjCEscaping);
902902 b.createCondFail (loc, isEscaping, " non-escaping closure has escaped" );
@@ -911,7 +911,7 @@ static bool fixupCopyBlockWithoutEscaping(CopyBlockWithoutEscapingInst *cb,
911911
912912 for (auto *block : exitingBlocks) {
913913 auto *safeDestructionPt = getDeinitSafeClosureDestructionPoint (block);
914- SILValue v = updater.GetValueAtEndOfBlock (block);
914+ SILValue v = updater.getValueAtEndOfBlock (block);
915915 SILBuilderWithScope (safeDestructionPt).createDestroyValue (autoGenLoc, v);
916916 }
917917 }
0 commit comments