[LLVMdev] [LLVMDev] [Question] How do I get the number of machine registers.

Jim Grosbach grosbach at apple.com
Fri Sep 3 09:57:59 PDT 2010


TargetRegisterInfo::getNumRegs().

Generally, it's best not to make any assumptions about the internal ordering or numbering if you can avoid it. What are you looking to do?

-Jim

On Sep 3, 2010, at 9:37 AM, Jeff Kunkel wrote:

> How do I get the total number of machine registers? I have currently a MachineFunction and some derivatives.
> 
> How are the machine registers ordered internally? Can I index them off of a zero based array or do I have to create a map to have them be zero based?
> 
> Thanks,
> Jeff Kunkel
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list