Lines Matching full:vreg

161   /// Finds the initial set of vreg intervals to allocate.
167 /// Spill the given VReg.
168 void spillVReg(Register VReg, SmallVectorImpl<Register> &NewIntervals,
333 Register VReg = G.getNodeMetadata(NId).getVReg(); in apply() local
334 LiveInterval &LI = LIS.getInterval(VReg); in apply()
604 Register VReg = Worklist.back(); in initializeGraph() local
607 LiveInterval &VRegLI = LIS.getInterval(VReg); in initializeGraph()
617 const TargetRegisterClass *TRC = MRI.getRegClass(VReg); in initializeGraph()
623 // Compute an initial allowed set for the current vreg. in initializeGraph()
654 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in initializeGraph()
659 VRegAllowedMap[VReg.id()] = std::move(VRegAllowed); in initializeGraph()
663 auto VReg = KV.first; in initializeGraph() local
666 if (LIS.getInterval(VReg).empty()) { in initializeGraph()
667 EmptyIntervalVRegs.insert(VReg); in initializeGraph()
668 VRegsToAlloc.erase(VReg); in initializeGraph()
683 G.getNodeMetadata(NId).setVReg(VReg); in initializeGraph()
686 G.getMetadata().setNodeIdForVReg(VReg, NId); in initializeGraph()
690 void RegAllocPBQP::spillVReg(Register VReg, in spillVReg() argument
694 VRegsToAlloc.erase(VReg); in spillVReg()
695 LiveRangeEdit LRE(&LIS.getInterval(VReg), NewIntervals, MF, LIS, &VRM, in spillVReg()
701 LLVM_DEBUG(dbgs() << "VREG " << printReg(VReg, &TRI) << " -> SPILLED (Cost: " in spillVReg()
734 Register VReg = G.getNodeMetadata(NId).getVReg(); in mapPBQPToRegAlloc() local
739 LLVM_DEBUG(dbgs() << "VREG " << printReg(VReg, &TRI) << " -> " in mapPBQPToRegAlloc()
742 VRM.assignVirt2Phys(VReg, PReg); in mapPBQPToRegAlloc()
744 // Spill VReg. If this introduces new intervals we'll need another round in mapPBQPToRegAlloc()
747 spillVReg(VReg, NewVRegs, MF, LIS, VRM, VRegSpiller); in mapPBQPToRegAlloc()
826 // Find the vreg intervals in need of allocation. in runOnMachineFunction()
894 Register VReg = G.getNodeMetadata(NId).getVReg(); in PrintNodeInfo() local
895 const char *RegClassName = TRI->getRegClassName(MRI.getRegClass(VReg)); in PrintNodeInfo()
896 OS << NId << " (" << RegClassName << ':' << printReg(VReg, TRI) << ')'; in PrintNodeInfo()