[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
Jeff Fifield
fifield at colorado.edu
Fri Sep 2 07:29:21 PDT 2011
On Fri, Sep 2, 2011 at 4:23 AM, Mian M. Hamayun
<mian-muhammad.hamayun at imag.fr> wrote:
> But I am also looking into the possibility of doing the same using LLVM Pass
> Manager (Without using llvm-ld). This looks difficult due to the fact that
> the function definitions ought to be in the same module as the caller, in
> order to be inlined and then optimized onwards, I guess !!! (Correct me If I
> am Wrong at this)
I have a system where I need to do this quite often. In my inlining
pass I open the module containing the function I wish to inline, copy
the function into the current module, then call InlineFunction.
-Jeff
More information about the llvm-dev
mailing list