<div dir="ltr">Hi Dibyendu,<div><br></div><div>I'd recommend trying ORC out - it gives you a lot more flexibility in your memory management, and aggressively frees memory by default.</div><div><br></div><div>If you haven't used ORC before I'd check out the tutorials under llvm/examples/Kaleidoscope/Orc. The basic JIT in the 'initial' tutorial should be all you need to replace MCJIT in most cases.</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 16, 2015 at 6:02 PM, Dibyendu Majumdar via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am looking for ways to reduce the memory consumption in my JIT<br>
compiler that uses LLVM. In my implementation a compiled function<br>
lives in its own module. After compiling the function/module I would<br>
like to be able to discard any memory associated with the module but<br>
retain the compiled code. How can I do this?<br>
<br>
I am currently using MCJIT but if the new ORC API supports this then I<br>
will be happy to migrate to it.<br>
<br>
Thanks and Regards<br>
<br>
Dibyendu<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>