Stub function generation in MCJIT using lli.

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

Hi Sumeeth,

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

-Jim