Displaying 2 results from an estimated 2 matches for "passregistryobj".
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...cpp
@@ -30,12 +30,17 @@ using namespace llvm;
// llvm_shutdown clear this map prevents successful resurrection after
// llvm_shutdown is run. Ideally we should find a solution so that we don't
// leak the map, AND can still resurrect after shutdown.
-static ManagedStatic<PassRegistry> PassRegistryObj;
+
+// Each thread gets its own PassRegistry.
+static __thread PassRegistry* PassRegistryObj = NULL;
PassRegistry *PassRegistry::getPassRegistry() {
- return &*PassRegistryObj;
+ // TODO(nipun): Handle deletion.
+ if (NULL == PassRegistryObj) {
+ PassRegistryObj = new PassRegistry();
+...
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...erAllE", "llvm::PrintAfterAll"},
{"_ZN12_GLOBAL__N_1L15TimingInfoMutexE", "(anonymous namespace)::TimingInfoMutex"},
{"_ZL12EnableTiming", "EnableTiming"},
{"_ZL11TheTimeInfo", "TheTimeInfo"},
{"_ZL15PassRegistryObj", "PassRegistryObj"},
{"_ZL4Lock", "Lock"},
{"_ZL8MoreHelp", "MoreHelp"},
{"_ZL20RegisteredOptionList", "RegisteredOptionList"},
{"_ZL15ProgramOverview", "ProgramOverview"},
{&quo...