[LLVMdev] Using a function from another module

Kenneth Uildriks kennethuil at gmail.com
Mon Jan 11 13:05:54 PST 2010


On Mon, Jan 11, 2010 at 1:39 PM, Jeffrey Yasskin <jyasskin at google.com> wrote:
> The JIT tries to handle this in some cases
> (http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?annotate=92771#l942),
> but doesn't handle it for functions. There aren't any tests, so I'm
> not surprised it's broken.
>
> The JIT would be simpler if we just dropped multiple-module support
> and asked people to link their modules together before trying to JIT
> them.  Is there a reason you can't do that?

I'd like to be able to JIT a module, call imported functions from it,
and then write out that module without including the bodies of the
imported functions in the output .bc file.




More information about the llvm-dev mailing list