[LLVMdev] linking into module of execution engine

Reid Kleckner reid.kleckner at gmail.com
Fri Oct 8 07:46:24 PDT 2010


On Fri, Oct 8, 2010 at 8:41 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
> Hi!
>
> at first i create an execution engine on a module
> (llvm::ExecutionEngine::create(module)).
>
> 1) is it allowed to modify the module, e.g. add a function?

Yes.  Most JITs work with a single global module which they add code
to as the callgraph expands.

> 2) is it allowed to construct a linker on this module, link something
> in, call linker.releaseModule()
> and destruct the linker again?

I don't know.

Reid



More information about the llvm-dev mailing list