search for: derigstration

Displaying 2 results from an estimated 2 matches for "derigstration".

2014 Jun 02
2
[LLVMdev] PassRegistry thread safety and ManagedStatic interaction
...mutable. > In > > main(), the existing PassRegistry initializes itself from the > > StaticPassRegistry. This *should* solve all the problems, the only > trick is > > finding every executable that uses the PassRegistry. > > How does this address the llvm_shutdown/pass derigstration issue? > > (a little more of my tale: I started trying to remove PassRegistry's > pimpl, but noticed that during pass derigstration the PassRegistry had > already been destroyed (since it's created by the first global that > tries to register a pass, so it must be destroyed b...
2014 Jun 02
2
[LLVMdev] PassRegistry thread safety and ManagedStatic interaction
I actually had an idea about how to fix this in a relatively painless manner. Although given my experience over the past 4 days, it might not be best to call it painless without first trying :) The idea is to make a StaticPassRegistry. RegisterPass<> only touches the StaticPassRegistry, and nothing else touches the StaticPassRegistry. So once you enter main(), StaticPassRegistry can be