Lines Matching refs:PhysReg
81 const LiveInterval &VRegInterval, MCRegister PhysReg, in foreachUnit() argument
84 for (MCRegUnitMaskIterator Units(PhysReg, TRI); Units.isValid(); ++Units) { in foreachUnit()
96 for (MCRegUnit Unit : TRI->regunits(PhysReg)) { in foreachUnit()
104 void LiveRegMatrix::assign(const LiveInterval &VirtReg, MCRegister PhysReg) { in assign() argument
106 << printReg(PhysReg, TRI) << ':'); in assign()
108 VRM->assignVirt2Phys(VirtReg.reg(), PhysReg); in assign()
111 TRI, VirtReg, PhysReg, [&](unsigned Unit, const LiveRange &Range) { in assign()
122 Register PhysReg = VRM->getPhys(VirtReg.reg()); in unassign() local
124 << " from " << printReg(PhysReg, TRI) << ':'); in unassign()
127 foreachUnit(TRI, VirtReg, PhysReg, in unassign()
138 bool LiveRegMatrix::isPhysRegUsed(MCRegister PhysReg) const { in isPhysRegUsed()
139 for (MCRegUnit Unit : TRI->regunits(PhysReg)) { in isPhysRegUsed()
147 MCRegister PhysReg) { in checkRegMaskInterference() argument
161 return !RegMaskUsable.empty() && (!PhysReg || !RegMaskUsable.test(PhysReg)); in checkRegMaskInterference()
165 MCRegister PhysReg) { in checkRegUnitInterference() argument
168 CoalescerPair CP(VirtReg.reg(), PhysReg, *TRI); in checkRegUnitInterference()
170 bool Result = foreachUnit(TRI, VirtReg, PhysReg, [&](unsigned Unit, in checkRegUnitInterference()
187 MCRegister PhysReg) { in checkInterference() argument
192 if (checkRegMaskInterference(VirtReg, PhysReg)) in checkInterference()
196 if (checkRegUnitInterference(VirtReg, PhysReg)) in checkInterference()
200 bool Interference = foreachUnit(TRI, VirtReg, PhysReg, in checkInterference()
211 MCRegister PhysReg) { in checkInterference() argument
219 for (MCRegUnit Unit : TRI->regunits(PhysReg)) { in checkInterference()
240 Register LiveRegMatrix::getOneVReg(unsigned PhysReg) const { in getOneVReg()
242 for (MCRegUnit Unit : TRI->regunits(PhysReg)) { in getOneVReg()