Lines Matching refs:MFI
62 static void checkFrameBase(WebAssemblyFunctionInfo &MFI, unsigned Local, in checkFrameBase() argument
65 if (MFI.isFrameBaseVirtual() && Reg == MFI.getFrameBaseVreg()) { in checkFrameBase()
70 MFI.setFrameBaseLocal(Local); in checkFrameBase()
77 WebAssemblyFunctionInfo &MFI, unsigned &CurLocal, in getLocalId() argument
81 checkFrameBase(MFI, CurLocal, Reg); in getLocalId()
196 const WebAssemblyFunctionInfo &MFI) { in findStartOfTree() argument
198 assert(MFI.isVRegStackified(Reg)); in findStartOfTree()
203 if (!MFI.isVRegStackified(DefReg.getReg())) { in findStartOfTree()
212 return findStartOfTree(DefMO, MRI, MFI); in findStartOfTree()
226 WebAssemblyFunctionInfo &MFI = *MF.getInfo<WebAssemblyFunctionInfo>(); in runOnMachineFunction() local
240 assert(!MFI.isVRegStackified(Reg)); in runOnMachineFunction()
243 checkFrameBase(MFI, Local, Reg); in runOnMachineFunction()
249 unsigned CurLocal = static_cast<unsigned>(MFI.getParams().size()); in runOnMachineFunction()
276 assert(MFI.isVRegStackified(MI.getOperand(0).getReg())); in runOnMachineFunction()
277 assert(!MFI.isVRegStackified(MI.getOperand(1).getReg())); in runOnMachineFunction()
282 if (!MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
283 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
289 MFI.stackifyVReg(MRI, NewReg); in runOnMachineFunction()
294 getLocalId(Reg2Local, MFI, CurLocal, MI.getOperand(1).getReg()); in runOnMachineFunction()
311 if (!MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
322 if (MFI.isFrameBaseVirtual() && OldReg == MFI.getFrameBaseVreg()) in runOnMachineFunction()
323 MFI.clearFrameBaseVreg(); in runOnMachineFunction()
325 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
339 MFI.stackifyVReg(MRI, NewReg); in runOnMachineFunction()
357 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
367 if (MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
368 InsertPt = findStartOfTree(MO, MRI, MFI); in runOnMachineFunction()
375 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
383 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
391 MFI.stackifyVReg(MRI, NewReg); in runOnMachineFunction()
407 MFI.setNumLocals(CurLocal - MFI.getParams().size()); in runOnMachineFunction()
411 if (RL == Reg2Local.end() || RL->second < MFI.getParams().size()) in runOnMachineFunction()
414 MFI.setLocal(RL->second - MFI.getParams().size(), in runOnMachineFunction()
428 MFI.isVRegStackified(MO.getReg())) && in runOnMachineFunction()