Lines Matching refs:TRI
58 const TargetRegisterInfo *TRI; member in __anonb64cd7cd0111::RAFast
125 for (MCRegUnitIterator Units(PhysReg, TRI); Units.isValid(); ++Units) in markRegUsedInInstr()
131 for (MCRegUnitIterator Units(PhysReg, TRI); Units.isValid(); ++Units) in isRegUsedInInstr()
240 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true); in addKillFlag()
285 DEBUG(dbgs() << "Spilling " << PrintReg(LRI->VirtReg, TRI) in spillVirtReg()
286 << " in " << PrintReg(LR.PhysReg, TRI)); in spillVirtReg()
290 TII->storeRegToStackSlot(*MBB, MI, LR.PhysReg, SpillKill, FI, RC, TRI); in spillVirtReg()
365 for (MCRegAliasIterator AI(PhysReg, TRI, false); AI.isValid(); ++AI) { in usePhysReg()
380 assert((TRI->isSuperRegister(PhysReg, Alias) || in usePhysReg()
381 TRI->isSuperRegister(Alias, PhysReg)) && in usePhysReg()
385 if (TRI->isSuperRegister(PhysReg, Alias)) { in usePhysReg()
388 MO.getParent()->addRegisterKilled(Alias, TRI, true); in usePhysReg()
424 for (MCRegAliasIterator AI(PhysReg, TRI, false); AI.isValid(); ++AI) { in definePhysReg()
435 if (TRI->isSuperRegister(PhysReg, Alias)) in definePhysReg()
450 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is already used in instr.\n"); in calcSpillCost()
459 DEBUG(dbgs() << PrintReg(VirtReg, TRI) << " corresponding " in calcSpillCost()
460 << PrintReg(PhysReg, TRI) << " is reserved already.\n"); in calcSpillCost()
470 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is disabled.\n"); in calcSpillCost()
472 for (MCRegAliasIterator AI(PhysReg, TRI, false); AI.isValid(); ++AI) { in calcSpillCost()
499 DEBUG(dbgs() << "Assigning " << PrintReg(LR.VirtReg, TRI) << " to " in assignVirtToPhysReg()
500 << PrintReg(PhysReg, TRI) << "\n"); in assignVirtToPhysReg()
555 << TRI->getRegClassName(RC) << "\n"); in allocVirtReg()
560 DEBUG(dbgs() << "\tRegister: " << PrintReg(*I, TRI) << "\n"); in allocVirtReg()
635 DEBUG(dbgs() << "Reloading " << PrintReg(VirtReg, TRI) << " into " in reloadVirtReg()
636 << PrintReg(LRI->PhysReg, TRI) << "\n"); in reloadVirtReg()
637 TII->loadRegFromStackSlot(*MBB, MI, LRI->PhysReg, FrameIndex, RC, TRI); in reloadVirtReg()
683 MO.setReg(PhysReg ? TRI->getSubReg(PhysReg, MO.getSubReg()) : 0); in setPhysReg()
689 MI->addRegisterKilled(PhysReg, TRI, true); in setPhysReg()
696 MI->addRegisterDefined(PhysReg, TRI); in setPhysReg()
729 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in handleThroughOperands()
783 DEBUG(dbgs() << "\tSetting " << PrintReg(Reg, TRI) in handleThroughOperands()
796 PhysRegState.assign(TRI->getNumRegs(), regDisabled); in AllocateBasicBlock()
815 for (unsigned Reg = 1, E = TRI->getNumRegs(); Reg != E; ++Reg) { in AllocateBasicBlock()
817 dbgs() << " " << TRI->getName(Reg); in AllocateBasicBlock()
1076 TRI = MF->getSubtarget().getRegisterInfo(); in runOnMachineFunction()
1081 UsedInInstr.setUniverse(TRI->getNumRegUnits()); in runOnMachineFunction()