<span class="gmail_quote">On 29/10/06, <b class="gmail_sendername">Chris Lattner</b> <<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Sat, 28 Oct 2006, Nikhil Patil wrote:<br>> Is it possible to bind a physical register to a particular global value? For<br>> instance, can I say that the global variable %omnipresent should be<br>> allocated not to memory, but instead to register %EAX.
<br><br>GCC has an extension to do this (see its user manual) and we support this.<br>Note that this does not guarantee that the register will always hold the<br>value of the global: the guarantee only holds during inline asm blocks.
</blockquote><div><br>Great! Thanks for the pointer. I intend to blacklist this "global" register during register allocation, so this should be good enough! </div><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
-Chris<br><br>--<br><a href="http://nondot.org/sabre/">http://nondot.org/sabre/</a><br><a href="http://llvm.org/">http://llvm.org/</a><br>_______________________________________________<br>LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
</a><br></blockquote><br>