Jochen Wilhelmy
2010-Oct-08 11:35 UTC
[LLVMdev] construction of ExecutionEngine without module
Hi! ExecutionEngine::addModule seems the method I have to use when I want to dynamically load snippets of code (e.g. containing a function) and execute them. I wonder why ExecutionEngine::create is only available with an initial module. I'd like to create an empty ExecutionEngine (i.e. without module) and then later use addModule. Is it possible do add such a method or can the pointer to module be NULL? -Jochen
Olivier Meurant
2010-Oct-08 14:47 UTC
[LLVMdev] construction of ExecutionEngine without module
No it's not possible. (Something related to the PassManager which needs a Module, I believe). Just use an empty module for creation ! Olivier. On Fri, Oct 8, 2010 at 1:35 PM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:> Hi! > > ExecutionEngine::addModule seems the method I have to use when I want to > dynamically > load snippets of code (e.g. containing a function) and execute them. > I wonder why ExecutionEngine::create is only available with an initial > module. > I'd like to create an empty ExecutionEngine (i.e. without module) and > then later > use addModule. Is it possible do add such a method or can the pointer to > module > be NULL? > > -Jochen > > _______________________________________________ > 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/20101008/e1acdd70/attachment.html>