[LLVMdev] Re ducing LLVM's memory usage
vitaly.chipounov at epfl.ch
Fri Dec 26 06:47:04 CST 2008
I am working on a binary translator and use LLVM for this.
In the process, I generate millions of constants (immediate values in the
source binary code).
The problem is that these constants seem to be not cleaned when I delete the
LLVM code (using Function::deleteBody() ) and as a result the memory usage
keeps growing. I browsed the forum and found that constants "live forever"
Is there are simple way of cleaning the used memory without destroying
everything (unloading the ExecutionEngine, freeing the module, calling
llvm_shutdown) ? Ideally I would like something which brings everything to
the state just after I created the JIT engine for the first time.
View this message in context: http://www.nabble.com/Reducing-LLVM%27s-memory-usage-tp21174014p21174014.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the LLVMdev