<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Hi Lang,<br>
<br>
sorry for the late response, I tried without success to solve the
trouble with the repeated processing of a command line.<br>
The implementation of the command line parser is a real hack ...
IMHO.<br>
<br>
I'm simply trying to build a server process for JIT compiling
/execution of a bitcode module using individual command line
options (in server loop).<br>
<br>
Do you have an idea how to reset the comand liner parser ?<br>
<br>
Regards<br>
<br>
Armin<br>
<br>
<br>
Lang Hames schrieb:<br>
</div>
<blockquote
cite="mid:CALLttgp8oQ16tqnqcfjyeMvP4Kt1o=kWm1p9KasynfhzhG=LEQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Armin,
<div><br>
</div>
<div>Argument parsing isn't handled by the JIT. This sounds like
you're making redundant calls to cl::ParseCommandLineOptions ?</div>
<div><br>
</div>
<div>Deleting the ExecutionEngine and any RTDyldMemoryManager
instances that you've created should be enough to reset the
JIT.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Lang.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 20, 2015 at 12:38 PM, Armin
Steinhoff <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:armin@steinhoff.de" target="_blank">armin@steinhoff.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
I'm using the code of the tool "lli" embedded in a process
of a controll application.<br>
<br>
After the second JIT compile action I see the following
messages:<br>
<br>
first JIT compile .. with a dump of the actual parameters:<br>
<br>
xargv: -load<br>
xargv: libqwt.so<br>
xargv: -load<br>
xargv: libosz.so<br>
xargv: -entry-function=main<br>
xargv: -use-mcjit<br>
xargv: source.bc -> the jitted application code works !<br>
<br>
second JIT compile:<br>
<br>
xargv: -load<br>
xargv: libqwt.so<br>
xargv: -load<br>
xargv: libosz.so<br>
xargv: -entry-function=main<br>
xargv: -use-mcjit<br>
xargv: source.bc<br>
dV: for the -entry-function option: may only occur zero or
one times!<br>
dV: for the -use-mcjit option: may only occur zero or one
times!<br>
<input bitcode> option: may only occur zero or one
times!<br>
<br>
The execution engine is deleted after the first JIT action
... but it seems not to be sufficient in order to run
multiple JIT compiles.<br>
<br>
What's to do additionally to reset (or re-initialize) lli ?<br>
<br>
Regards<br>
<br>
Armin<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu"
target="_blank">LLVMdev@cs.uiuc.edu</a> <a
moz-do-not-send="true" href="http://llvm.cs.uiuc.edu"
target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>