Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:VirtReg

84 bool VirtRegMap::hasPreferredPhys(unsigned VirtReg) {
85 unsigned Hint = MRI->getSimpleHint(VirtReg);
90 return getPhys(VirtReg) == Hint;
93 bool VirtRegMap::hasKnownPreference(unsigned VirtReg) {
94 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg);
102 int VirtRegMap::assignVirt2StackSlot(unsigned virtReg) {
103 assert(TargetRegisterInfo::isVirtualRegister(virtReg));
104 assert(Virt2StackSlotMap[virtReg] == NO_STACK_SLOT &&
106 const TargetRegisterClass* RC = MF->getRegInfo().getRegClass(virtReg);
107 return Virt2StackSlotMap[virtReg] = createSpillSlot(RC);
110 void VirtRegMap::assignVirt2StackSlot(unsigned virtReg, int SS) {
111 assert(TargetRegisterInfo::isVirtualRegister(virtReg));
112 assert(Virt2StackSlotMap[virtReg] == NO_STACK_SLOT &&
117 Virt2StackSlotMap[virtReg] = SS;
244 unsigned VirtReg = TargetRegisterInfo::index2VirtReg(Idx);
245 if (MRI->reg_nodbg_empty(VirtReg))
247 LiveInterval &LI = LIS->getInterval(VirtReg);
252 unsigned PhysReg = VRM->getPhys(VirtReg);
349 // If we encounter a VirtReg or PhysReg then get at the PhysReg and add
360 unsigned VirtReg = MO.getReg();
361 unsigned PhysReg = VRM->getPhys(VirtReg);
363 "Instruction uses unmapped VirtReg");