[LLVMdev] Live Intervals and Register Classes

Chris Lattner sabre at nondot.org
Fri May 11 16:52:27 PDT 2007

On Fri, 11 May 2007, David Greene wrote:
> Umm...yeah.  That way be dragons.  :-/
> Fortunately, I found
> MachineFunction::getSSARegMap()->getRegClass(LI.reg) which
> works swimmingly.

Yep, that's exactly the right way to go for vregs.  It won't work for 
physregs, primarily because they can be in multiple reg classes :)



More information about the llvm-dev mailing list