• Home
  • Raw
  • Download

Lines Matching refs:FI

182   void recordReload(Register Reg, int FI, const MachineBasicBlock *MBB) {  in recordReload()  argument
183 RegSlotPair RSP(Reg, FI); in recordReload()
190 bool hasReload(Register Reg, int FI, const MachineBasicBlock *MBB) { in hasReload() argument
191 RegSlotPair RSP(Reg, FI); in hasReload()
258 int FI = Idx->second; in getFrameIndex() local
259 LLVM_DEBUG(dbgs() << "Found global FI " << FI << " for register " in getFrameIndex()
262 assert(ReservedSlots.count(FI) && "using unreserved slot"); in getFrameIndex()
263 return FI; in getFrameIndex()
270 int FI = Line.Slots[Line.Index++]; in getFrameIndex() local
271 if (ReservedSlots.count(FI)) in getFrameIndex()
275 if (MFI.getObjectSize(FI) < Size) { in getFrameIndex()
276 MFI.setObjectSize(FI, Size); in getFrameIndex()
277 MFI.setObjectAlignment(FI, Align(Size)); in getFrameIndex()
280 return FI; in getFrameIndex()
282 int FI = MFI.CreateSpillStackObject(Size, Align(Size)); in getFrameIndex() local
284 Line.Slots.push_back(FI); in getFrameIndex()
289 GlobalIndices[EHPad].push_back(std::make_pair(Reg, FI)); in getFrameIndex()
290 LLVM_DEBUG(dbgs() << "Reserved FI " << FI << " for spilling reg " in getFrameIndex()
295 return FI; in getFrameIndex()
406 int FI = CacheFI.getFrameIndex(Reg, EHPad); in spillRegisters() local
410 RegToSlotIdx[Reg] = FI; in spillRegisters()
412 LLVM_DEBUG(dbgs() << "Spilling " << printReg(Reg, &TRI) << " to FI " << FI in spillRegisters()
421 TII.storeRegToStackSlot(*MI.getParent(), InsertBefore, Reg, IsKill, FI, in spillRegisters()
429 int FI = RegToSlotIdx[Reg]; in insertReloadBefore() local
431 TII.loadRegFromStackSlot(*MBB, It, Reg, FI, RC, &TRI); in insertReloadBefore()
439 TII.loadRegFromStackSlot(*MBB, It, Reg, FI, RC, &TRI); in insertReloadBefore()
444 assert(Dummy == FI); in insertReloadBefore()
506 int FI = RegToSlotIdx[MO.getReg()]; in rewriteStatepoint() local
511 MIB.addFrameIndex(FI); in rewriteStatepoint()