[LLVMdev] Inlining native functions during JIT compilation

Philip Reames listmail at philipreames.com
Mon Jan 6 15:25:12 PST 2014


As long as the JIT knows about the IR for the functions, you should be 
able to use the standard inlining passes.  For standard c routines 
(memcpy,etc..) this knowledge is built in.  For language specific 
routines, you'll have to provide the IR.

Philip

On 1/6/14 9:46 AM, Timothy Baldridge wrote:
> Let's say I'm using LLVM to JIT compile a function. Inside that 
> function I make a call to a runtime method in a currently loaded 
> library. Is there any way to get LLVM to inline that function call?
>
> As an example, let's say my jitted function calls memcpy, can I get 
> memcpy's body inlined somehow? Or can that only be done via lto and 
> aot compilation?
>
> Thanks,
>
> Timothy Baldridge
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140106/4cd70c3c/attachment.html>


More information about the llvm-dev mailing list