[LLVMdev] branch to a native instruction address from LLVM IR.
John Criswell
criswell at illinois.edu
Mon Jun 25 07:36:28 PDT 2012
On 6/24/12 5:04 AM, Xin Tong wrote:
> I would like to generate a branch/jump to a native instruction address
> (set up in the JIT runtime) in LLVM IR. It seems all the branch
> instructions (except indirect branch) takes a LLVM BasicBlock. What
> would be the best way to achieve this ?
I don't think there's a way to do this in pure LLVM IR. However, I
think you could insert an inline assembly code call instruction to do
the jump.
-- John T.
>
> Thanks
>
> Xin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list