[LLVMdev] Register Allocation of Globals

Nikhil Patil patil.nikhil at gmail.com
Sun Oct 29 10:37:05 PST 2006

On 29/10/06, Chris Lattner <sabre at nondot.org> wrote:
> On Sat, 28 Oct 2006, Nikhil Patil wrote:
> > Is it possible to bind a physical register to a particular global value?
> For
> > instance, can I say that the global variable %omnipresent should be
> > allocated not to memory, but instead to register %EAX.
> GCC has an extension to do this (see its user manual) and we support this.
> Note that this does not guarantee that the register will always hold the
> value of the global: the guarantee only holds during inline asm blocks.

Great! Thanks for the pointer. I intend to blacklist this "global"
register during register allocation, so this should be good enough!

> --
> http://nondot.org/sabre/
> http://llvm.org/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061029/3e9ca1ec/attachment.html>

More information about the llvm-dev mailing list