[LLVMdev] Stub function generation in MCJIT using lli.

Jim Grosbach grosbach at apple.com
Thu Jan 31 14:58:52 PST 2013

Hi Sumeeth,

That functionality is part of the old (non-MC) JIT. The MCJIT does not yet support lazy compilation.


On Jan 31, 2013, at 2:54 PM, sumeeth kc <sumeethkc at gmail.com> wrote:

> Hi all,
> I am new to LLVM so I apologize if my question seem lame to you. 
> I was trying to understand the way in which MCJIT generates the stub functions when it encounters any functions which are not compiled yet. As far as I have looked into the code, the probable code which can do this is 
> void *JIT::getPointerToFunctionOrStub and this is in JITEmitter under JIT.
> I may be wrong here though. Could you please give a brief overview how the stub functions are generated? Also, how does the original function when it is compiled is put in place of the stub?
> Your help is much appreciated.
> Thanks,
> Sumeeth
> _______________________________________________
> 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