I am looking for ways to reduce the memory consumption in my JIT
compiler that uses LLVM. In my implementation a compiled function
lives in its own module. After compiling the function/module I would
like to be able to discard any memory associated with the module but
retain the compiled code. How can I do this?
I am currently using MCJIT but if the new ORC API supports this then I
will be happy to migrate to it.
Thanks and Regards