[LLVMdev] Making it possible to clear the LLVMContext

Mathias Fröhlich Mathias.Froehlich at web.de
Tue Jun 24 23:16:39 PDT 2014


Hi,

On Tuesday, June 24, 2014 22:22:46 Rafael Avila de Espindola wrote:
> This is probably an independent bug, no? How about moving the evt cache to the llvmcontext so that it goes away with it?
Yes this is independent in that sense. But this
illustrates that the guy with the original message has to be careful if he is trying to do
what he wanted - so this is connected as such. May be as a counter example why he
should expect may be subtle problems when he attempts to clear a
LLVMContext at the first place.

I have not looked too deep into llvm to see if your suggestion would be possible or not.
The only naive approach that I quickly checked at that time was that if the context would prune its
own cache entries we would introduce a circular library dependency.
It would be great to have a solution for this.
It's sad that I cannot promise to look into that, I have already done this too often at
different projects creating a too long backlog on my side to be useful with this. Sorry ...

Greetings

Mathias



More information about the llvm-dev mailing list