Lines Matching full:vreg
36 /// to a register allocation solution. (i.e. The PBQP-node <--> vreg map,
49 /// and the set of allowed pregs for the vreg.
55 void recordVReg(unsigned vreg, PBQP::Graph::NodeItr node,
58 assert(vreg2Node.find(vreg) == vreg2Node.end() && "Re-mapping vreg.");
59 assert(allowedSets[vreg].empty() && "vreg already has pregs.");
61 node2VReg[node] = vreg;
62 vreg2Node[vreg] = node;
63 std::copy(arBegin, arEnd, std::back_inserter(allowedSets[vreg]));
70 PBQP::Graph::NodeItr getNodeForVReg(unsigned vreg) const;
74 bool isPRegOption(unsigned vreg, unsigned option) const {
77 return !isSpillOption(vreg, option);
82 bool isSpillOption(unsigned vreg, unsigned option) const {
88 const AllowedSet& getAllowedSet(unsigned vreg) const;
91 unsigned getPRegForOption(unsigned vreg, unsigned option) const;