[LLVMdev] indirectbr/blockaddress question

Maurice Marks maurice.marks at gmail.com
Sat Dec 11 13:19:13 PST 2010


In my llvm jit project I needed to lookup BB addresses at execution time and
then jump to the corresponding BB. A C++ routine called at runtime from IR
finds the right BB, gets its BlockAddress and returns it as an i8*. The IR
does an indirectbr on this value...
Well, not really. The routine returns the address of a BlockAddress node. Is
there any way to get the real runtime code address for the indirect jump at
runtime?

Thanks for any advice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101211/b2d27a36/attachment.html>


More information about the llvm-dev mailing list