1- //===--- BorrowArgumentsUpdater .swift -------------------------------------===//
1+ //===--- GuaranteedPhiUpdater .swift -- -------------------------------------===//
22//
33// This source file is part of the Swift.org open source project
44//
@@ -14,13 +14,13 @@ import SIL
1414import OptimizerBridging
1515
1616/// Updates the reborrow flags and the borrowed-from instructions for all guaranteed phis in `function`.
17- func updateBorrowArguments ( in function: Function , _ context: some MutatingContext ) {
17+ func updateGuaranteedPhis ( in function: Function , _ context: some MutatingContext ) {
1818 updateReborrowFlags ( in: function, context)
1919 updateBorrowedFrom ( in: function, context)
2020}
2121
2222/// Updates the reborrow flags and the borrowed-from instructions for all `phis`.
23- func updateBorrowArguments ( for phis: some Sequence < Phi > , _ context: some MutatingContext ) {
23+ func updateGuaranteedPhis ( phis: some Sequence < Phi > , _ context: some MutatingContext ) {
2424 updateReborrowFlags ( for: phis, context)
2525 updateBorrowedFrom ( for: phis, context)
2626}
@@ -151,12 +151,12 @@ private func addEnclosingValues(
151151 return true
152152}
153153
154- func registerBorrowArgumentsUpdater ( ) {
155- BridgedUtilities . registerBorrowArgumentsUpdater (
154+ func registerGuaranteedPhiUpdater ( ) {
155+ BridgedUtilities . registerGuaranteedPhiUpdater (
156156 { ( bridgedCtxt: BridgedPassContext , bridgedFunction: BridgedFunction ) in
157157 let context = FunctionPassContext ( _bridged: bridgedCtxt)
158158 let function = bridgedFunction. function;
159- updateBorrowArguments ( in: function, context)
159+ updateGuaranteedPhis ( in: function, context)
160160 } ,
161161 { ( bridgedCtxt: BridgedPassContext , bridgedPhiArray: BridgedArrayRef ) in
162162 let context = FunctionPassContext ( _bridged: bridgedCtxt)
@@ -170,7 +170,7 @@ func registerBorrowArgumentsUpdater() {
170170 }
171171 }
172172 }
173- updateBorrowArguments ( for : guaranteedPhis, context)
173+ updateGuaranteedPhis ( phis : guaranteedPhis, context)
174174 }
175175 )
176176}
0 commit comments