Lines Matching refs:TRI
33 : Tag(0), MF(nullptr), TRI(nullptr), CalleeSaved(nullptr) {} in RegisterClassInfo()
40 if (MF->getSubtarget().getRegisterInfo() != TRI) { in runOnMachineFunction()
41 TRI = MF->getSubtarget().getRegisterInfo(); in runOnMachineFunction()
42 RegClass.reset(new RCInfo[TRI->getNumRegClasses()]); in runOnMachineFunction()
43 unsigned NumPSets = TRI->getNumRegPressureSets(); in runOnMachineFunction()
50 assert(TRI && "no register info set"); in runOnMachineFunction()
51 const MCPhysReg *CSR = TRI->getCalleeSavedRegs(MF); in runOnMachineFunction()
56 CSRNum.resize(TRI->getNumRegs(), 0); in runOnMachineFunction()
58 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction()
103 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute()
122 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute()
135 TRI->getLargestLegalSuperClass(RC, *MF)) in compute()
143 dbgs() << "AllocationOrder(" << TRI->getRegClassName(RC) << ") = ["; in compute()
145 dbgs() << ' ' << PrintReg(RCI.Order[I], TRI); in compute()
160 RI = TRI->regclass_begin(), RE = TRI->regclass_end(); RI != RE; ++RI) { in computePSetLimit()
161 const int *PSetID = TRI->getRegClassPressureSets(*RI); in computePSetLimit()
171 unsigned NUnits = TRI->getRegClassWeight(*RI).WeightLimit; in computePSetLimit()
179 return TRI->getRegPressureSetLimit(*MF, Idx) - in computePSetLimit()
180 TRI->getRegClassWeight(RC).RegWeight * NReserved; in computePSetLimit()