[LLVMdev] [ LLI / MCJIT] re-initializing of lli ...
Lang Hames
lhames at gmail.com
Tue Jan 20 13:22:57 PST 2015
Hi Armin,
Argument parsing isn't handled by the JIT. This sounds like you're making
redundant calls to cl::ParseCommandLineOptions ?
Deleting the ExecutionEngine and any RTDyldMemoryManager instances that
you've created should be enough to reset the JIT.
Cheers,
Lang.
On Tue, Jan 20, 2015 at 12:38 PM, Armin Steinhoff <armin at steinhoff.de>
wrote:
>
> Hi,
>
> I'm using the code of the tool "lli" embedded in a process of a controll
> application.
>
> After the second JIT compile action I see the following messages:
>
> first JIT compile .. with a dump of the actual parameters:
>
> xargv: -load
> xargv: libqwt.so
> xargv: -load
> xargv: libosz.so
> xargv: -entry-function=main
> xargv: -use-mcjit
> xargv: source.bc -> the jitted application code works !
>
> second JIT compile:
>
> xargv: -load
> xargv: libqwt.so
> xargv: -load
> xargv: libosz.so
> xargv: -entry-function=main
> xargv: -use-mcjit
> xargv: source.bc
> dV: for the -entry-function option: may only occur zero or one times!
> dV: for the -use-mcjit option: may only occur zero or one times!
> <input bitcode> option: may only occur zero or one times!
>
> The execution engine is deleted after the first JIT action ... but it
> seems not to be sufficient in order to run multiple JIT compiles.
>
> What's to do additionally to reset (or re-initialize) lli ?
>
> Regards
>
> Armin
>
> _______________________________________________
> 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/20150120/765f8979/attachment.html>
More information about the llvm-dev
mailing list