Lines Matching refs:virtReg
171 bool hasPhys(unsigned virtReg) const { in hasPhys() argument
172 return getPhys(virtReg) != NO_PHYS_REG; in hasPhys()
177 unsigned getPhys(unsigned virtReg) const { in getPhys() argument
178 assert(TargetRegisterInfo::isVirtualRegister(virtReg)); in getPhys()
179 return Virt2PhysMap[virtReg]; in getPhys()
184 void assignVirt2Phys(unsigned virtReg, unsigned physReg) { in assignVirt2Phys() argument
185 assert(TargetRegisterInfo::isVirtualRegister(virtReg) && in assignVirt2Phys()
187 assert(Virt2PhysMap[virtReg] == NO_PHYS_REG && in assignVirt2Phys()
190 Virt2PhysMap[virtReg] = physReg; in assignVirt2Phys()
195 void clearVirt(unsigned virtReg) { in clearVirt() argument
196 assert(TargetRegisterInfo::isVirtualRegister(virtReg)); in clearVirt()
197 assert(Virt2PhysMap[virtReg] != NO_PHYS_REG && in clearVirt()
199 Virt2PhysMap[virtReg] = NO_PHYS_REG; in clearVirt()
209 unsigned getRegAllocPref(unsigned virtReg);
217 void setIsSplitFromReg(unsigned virtReg, unsigned SReg) { in setIsSplitFromReg() argument
218 Virt2SplitMap[virtReg] = SReg; in setIsSplitFromReg()
222 unsigned getPreSplitReg(unsigned virtReg) const { in getPreSplitReg() argument
223 return Virt2SplitMap[virtReg]; in getPreSplitReg()
237 bool isAssignedReg(unsigned virtReg) const { in isAssignedReg() argument
238 if (getStackSlot(virtReg) == NO_STACK_SLOT && in isAssignedReg()
239 getReMatId(virtReg) == NO_STACK_SLOT) in isAssignedReg()
243 return (Virt2SplitMap[virtReg] && Virt2PhysMap[virtReg] != NO_PHYS_REG); in isAssignedReg()
248 int getStackSlot(unsigned virtReg) const { in getStackSlot() argument
249 assert(TargetRegisterInfo::isVirtualRegister(virtReg)); in getStackSlot()
250 return Virt2StackSlotMap[virtReg]; in getStackSlot()
255 int getReMatId(unsigned virtReg) const { in getReMatId() argument
256 assert(TargetRegisterInfo::isVirtualRegister(virtReg)); in getReMatId()
257 return Virt2ReMatIdMap[virtReg]; in getReMatId()
262 int assignVirt2StackSlot(unsigned virtReg);
265 void assignVirt2StackSlot(unsigned virtReg, int frameIndex);
269 int assignVirtReMatId(unsigned virtReg);
272 void assignVirtReMatId(unsigned virtReg, int id);
276 bool isReMaterialized(unsigned virtReg) const { in isReMaterialized() argument
277 return ReMatMap[virtReg] != NULL; in isReMaterialized()
282 MachineInstr *getReMaterializedMI(unsigned virtReg) const { in getReMaterializedMI() argument
283 return ReMatMap[virtReg]; in getReMaterializedMI()
290 void setVirtIsReMaterialized(unsigned virtReg, MachineInstr *def) { in setVirtIsReMaterialized() argument
291 ReMatMap[virtReg] = def; in setVirtIsReMaterialized()
295 void addKillPoint(unsigned virtReg, SlotIndex index) { in addKillPoint() argument
296 Virt2SplitKillMap[virtReg] = index; in addKillPoint()
299 SlotIndex getKillPoint(unsigned virtReg) const { in getKillPoint() argument
300 return Virt2SplitKillMap[virtReg]; in getKillPoint()
304 void removeKillPoint(unsigned virtReg) { in removeKillPoint() argument
305 Virt2SplitKillMap[virtReg] = SlotIndex(); in removeKillPoint()
320 void addSpillPoint(unsigned virtReg, bool isKill, MachineInstr *Pt) { in addSpillPoint() argument
324 I->second.push_back(std::make_pair(virtReg, isKill)); in addSpillPoint()
327 Virts.push_back(std::make_pair(virtReg, isKill)); in addSpillPoint()
340 unsigned virtReg = I->second.back().first; in transferSpillPts() local
343 addSpillPoint(virtReg, isKill, New); in transferSpillPts()
360 void addRestorePoint(unsigned virtReg, MachineInstr *Pt) { in addRestorePoint() argument
364 I->second.push_back(virtReg); in addRestorePoint()
367 Virts.push_back(virtReg); in addRestorePoint()
380 unsigned virtReg = I->second.back(); in transferRestorePts() local
382 addRestorePoint(virtReg, New); in transferRestorePts()
419 unsigned virtReg = I->second.back(); in transferEmergencySpills() local
421 addEmergencySpill(virtReg, New); in transferEmergencySpills()