Lines Matching defs:Reg
72 bool isAllocated(unsigned Reg) const {
73 return UsedRegs[Reg/32] & (1 << (Reg&31));
119 unsigned AllocateReg(unsigned Reg) {
120 if (isAllocated(Reg)) return 0;
121 MarkAllocated(Reg);
122 return Reg;
126 unsigned AllocateReg(unsigned Reg, unsigned ShadowReg) {
127 if (isAllocated(Reg)) return 0;
128 MarkAllocated(Reg);
130 return Reg;
139 return 0; // Didn't find the reg.
142 unsigned Reg = Regs[FirstUnalloc];
143 MarkAllocated(Reg);
144 return Reg;
152 return 0; // Didn't find the reg.
155 unsigned Reg = Regs[FirstUnalloc], ShadowReg = ShadowRegs[FirstUnalloc];
156 MarkAllocated(Reg);
158 return Reg;
180 void MarkAllocated(unsigned Reg);