Lines Matching refs:vreg
170 PBQP::Graph::NodeItr PBQPRAProblem::getNodeForVReg(unsigned vreg) const { in getNodeForVReg()
171 VReg2Node::const_iterator nodeItr = vreg2Node.find(vreg); in getNodeForVReg()
178 PBQPRAProblem::getAllowedSet(unsigned vreg) const { in getAllowedSet()
179 AllowedSetMap::const_iterator allowedSetItr = allowedSets.find(vreg); in getAllowedSet()
185 unsigned PBQPRAProblem::getPRegForOption(unsigned vreg, unsigned option) const { in getPRegForOption() argument
186 assert(isPRegOption(vreg, option) && "Not a preg option."); in getPRegForOption()
188 const AllowedSet& allowedSet = getAllowedSet(vreg); in getPRegForOption()
221 unsigned vreg = *vregItr; in build() local
222 const TargetRegisterClass *trc = mri->getRegClass(vreg); in build()
223 const LiveInterval *vregLI = &lis->getInterval(vreg); in build()
312 p->recordVReg(vreg, node, vrAllowed.begin(), vrAllowed.end()); in build()
542 unsigned vreg = problem.getVRegForNode(node); in mapPBQPToRegAlloc() local
545 if (problem.isPRegOption(vreg, alloc)) { in mapPBQPToRegAlloc()
546 unsigned preg = problem.getPRegForOption(vreg, alloc); in mapPBQPToRegAlloc()
547 DEBUG(dbgs() << "VREG " << vreg << " -> " << tri->getName(preg) << "\n"); in mapPBQPToRegAlloc()
549 vrm->assignVirt2Phys(vreg, preg); in mapPBQPToRegAlloc()
550 } else if (problem.isSpillOption(vreg, alloc)) { in mapPBQPToRegAlloc()
551 vregsToAlloc.erase(vreg); in mapPBQPToRegAlloc()
553 LiveRangeEdit LRE(lis->getInterval(vreg), newSpills, *mf, *lis, vrm); in mapPBQPToRegAlloc()
556 DEBUG(dbgs() << "VREG " << vreg << " -> SPILLED (Cost: " in mapPBQPToRegAlloc()