[LLVMdev] Register Allocation of Globals
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?
> > 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!
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev