Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:VirtReg

83 bool VirtRegMap::hasPreferredPhys(unsigned VirtReg) {
84 unsigned Hint = MRI->getSimpleHint(VirtReg);
89 return getPhys(VirtReg) == Hint;
92 bool VirtRegMap::hasKnownPreference(unsigned VirtReg) {
93 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg);
101 int VirtRegMap::assignVirt2StackSlot(unsigned virtReg) {
102 assert(TargetRegisterInfo::isVirtualRegister(virtReg));
103 assert(Virt2StackSlotMap[virtReg] == NO_STACK_SLOT &&
105 const TargetRegisterClass* RC = MF->getRegInfo().getRegClass(virtReg);
106 return Virt2StackSlotMap[virtReg] = createSpillSlot(RC);
109 void VirtRegMap::assignVirt2StackSlot(unsigned virtReg, int SS) {
110 assert(TargetRegisterInfo::isVirtualRegister(virtReg));
111 assert(Virt2StackSlotMap[virtReg] == NO_STACK_SLOT &&
116 Virt2StackSlotMap[virtReg] = SS;
243 unsigned VirtReg = TargetRegisterInfo::index2VirtReg(Idx);
244 if (MRI->reg_nodbg_empty(VirtReg))
246 LiveInterval &LI = LIS->getInterval(VirtReg);
251 unsigned PhysReg = VRM->getPhys(VirtReg);
327 // If we encounter a VirtReg or PhysReg then get at the PhysReg and add
338 unsigned VirtReg = MO.getReg();
339 unsigned PhysReg = VRM->getPhys(VirtReg);
341 "Instruction uses unmapped VirtReg");