<div class="gmail_quote">Sorry for bringing up an old topic, but I was wondering the status? (See below)</div><div class="gmail_quote">Thanks!!</div><div class="gmail_quote"> </div><div class="gmail_quote">On Sat, Nov 10, 2012 at 9:41 AM, Caldarale, Charles R <span dir="ltr"><<a href="mailto:Chuck.Caldarale@unisys.com" target="_blank">Chuck.Caldarale@unisys.com</a>></span> wrote:<br>
</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">> From: <a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a>]<br>

> On Behalf Of John Slagel<br>
> Subject: [LLVMdev] Saving a reference to a Basic Block?<br>
<br>
> Is there a way to save a reference to a Basic Block that gets all fixed<br>
> up in the linker, so that you can branch to it during execution?<br>
<br>
We use the blockaddress() constant generator, coupled with the indirectbr instruction:<br>
<br>
<a href="http://llvm.org/releases/3.1/docs/LangRef.html#blockaddress" target="_blank">http://llvm.org/releases/3.1/docs/LangRef.html#blockaddress</a><br>
<a href="http://llvm.org/releases/3.1/docs/LangRef.html#i_indirectbr" target="_blank">http://llvm.org/releases/3.1/docs/LangRef.html#i_indirectbr</a><br>
<br>
Note that all target basic blocks of indirectbr must be provided to the instruction as part of the IR construction.<br>
<br>
Also, at least the x86_64 target for the legacy JIT is missing some required functionality for handling blockaddress(); we've fixed that locally, but need to check what the MCJIT does before submitting a patch.<br></blockquote>
<div class="gmail_quote"> </div><div class="gmail_quote">Has this been resolved? </div><div class="gmail_quote">Thanks!!<br></div><div class="gmail_quote"> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">

<br>
 - Chuck<br>
<br>
<br>
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.<br>

<br>
</blockquote><br>