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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130131/604231d3/attachment.html>
Hi Sumeeth, That functionality is part of the old (non-MC) JIT. The MCJIT does not yet support lazy compilation. -Jim 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
Reasonably Related Threads
- [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
- [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
- [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
- [LLVMdev] Resolving a function symbol using JIT.
- [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines