Lines Matching refs:physReg
313 void addRegUse(unsigned physReg) { in addRegUse()
314 assert(TargetRegisterInfo::isPhysicalRegister(physReg) && in addRegUse()
316 ++regUse_[physReg]; in addRegUse()
317 for (const unsigned* as = tri_->getAliasSet(physReg); *as; ++as) in addRegUse()
321 void delRegUse(unsigned physReg) { in delRegUse()
322 assert(TargetRegisterInfo::isPhysicalRegister(physReg) && in delRegUse()
324 assert(regUse_[physReg] != 0); in delRegUse()
325 --regUse_[physReg]; in delRegUse()
326 for (const unsigned* as = tri_->getAliasSet(physReg); *as; ++as) { in delRegUse()
332 bool isRegAvail(unsigned physReg) const { in isRegAvail()
333 assert(TargetRegisterInfo::isPhysicalRegister(physReg) && in isRegAvail()
335 return regUse_[physReg] == 0; in isRegAvail()
973 unsigned physReg = vrm_->getRegAllocPref(cur->reg); in assignRegOrStackSlotAtInterval() local
974 if (!physReg) in assignRegOrStackSlotAtInterval()
975 physReg = getFirstNonReservedPhysReg(RC); in assignRegOrStackSlotAtInterval()
976 DEBUG(dbgs() << tri_->getName(physReg) << '\n'); in assignRegOrStackSlotAtInterval()
978 vrm_->assignVirt2Phys(cur->reg, physReg); in assignRegOrStackSlotAtInterval()
1041 unsigned physReg = getFreePhysReg(cur); in assignRegOrStackSlotAtInterval() local
1042 unsigned BestPhysReg = physReg; in assignRegOrStackSlotAtInterval()
1043 if (physReg) { in assignRegOrStackSlotAtInterval()
1048 for (const unsigned *AS = tri_->getAliasSet(physReg); *AS; ++AS) in assignRegOrStackSlotAtInterval()
1054 if (physReg == IP.first->reg || RegAliases.count(IP.first->reg)) { in assignRegOrStackSlotAtInterval()
1098 physReg = getFreePhysReg(cur); in assignRegOrStackSlotAtInterval()
1109 if (physReg) { in assignRegOrStackSlotAtInterval()
1110 DEBUG(dbgs() << tri_->getName(physReg) << '\n'); in assignRegOrStackSlotAtInterval()
1111 assert(RC->contains(physReg) && "Invalid candidate"); in assignRegOrStackSlotAtInterval()
1112 vrm_->assignVirt2Phys(cur->reg, physReg); in assignRegOrStackSlotAtInterval()
1113 addRegUse(physReg); in assignRegOrStackSlotAtInterval()
1121 avoidWAW_ = physReg; in assignRegOrStackSlotAtInterval()
1124 UpgradeRegister(physReg); in assignRegOrStackSlotAtInterval()
1128 mri_->setRegAllocationHint(NextReloadLI->reg, 0, physReg); in assignRegOrStackSlotAtInterval()
1129 DowngradeRegister(cur, physReg); in assignRegOrStackSlotAtInterval()
1429 unsigned physReg = Hint.second; in getFreePhysReg() local
1430 if (TargetRegisterInfo::isVirtualRegister(physReg) && vrm_->hasPhys(physReg)) in getFreePhysReg()
1431 physReg = vrm_->getPhys(physReg); in getFreePhysReg()
1435 Order = tri_->getRawAllocationOrder(RC, Hint.first, physReg, *mf_); in getFreePhysReg()