[LLVMdev] Conceptual difference between "Unallocatable" and "Reserved" registers.

Lei Mou lei.mou.uu at gmail.com
Tue Apr 17 21:09:15 PDT 2012


Hi,

I'm writing to ask the differences between a "reserved" register and an
"unallocable" register. In X86 backend, for example, the stack pointer
register and instruction pointer are reserved but allocatable. In the
Doxygen document of function llvm::TargetRegisterInfo::getReservedRegs,
it says that a reserved register is one that *has particular uses and
should be considered unavailable at all times. *If it is unavailable at all
times, why not make such a reserved register unallocatable? Thanks!

Regards,
Lei Mou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120418/6218aac7/attachment.html>


More information about the llvm-dev mailing list