The method below takes in a register and returns a register. To me this makes no sense because<div>when I already have a register, why would I need to get it? Could someone please explain the</div><div>transformation that is happening here?<br>
<div><div><div><br></div><div> /// getRegister - Return the specified register in the class.</div><div> ///</div><div> unsigned getRegister(unsigned i) const {</div><div> assert(i < getNumRegs() && "Register number out of range!");</div>
<div> return RegsBegin[i];</div><div> }</div></div><div><br></div><div><br></div></div></div>