[LLVMdev] Making it possible to clear the LLVMContext
Caldarale, Charles R
Chuck.Caldarale at unisys.com
Tue Jun 24 11:52:08 PDT 2014
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Marcello Maggioni
> Subject: Re: [LLVMdev] Making it possible to clear the LLVMContext
> Something like, keeping the compiler alive for a many compilation sessions, using the same
> LLVMContext, but without the problem of accumulating data in the LLVMContext that
> would slowly fill up the memory.
Again, why not just delete the old Context and get a new one? That's a whole lot simpler than trying to clean up a used one.
However, reusing an existing Context (without trying to clean it up other than removing modules from it) has some benefit, in that many of the items can be reused in subsequent compilations, since many values show up repeatedly in a given environment.
- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140624/20f7c051/attachment.html>
More information about the llvm-dev
mailing list