Displaying 2 results from an estimated 2 matches for "unregisterpass".
Did you mean:
registerpass
2003 Dec 15
1
[LLVMdev] Assertion failed in Pass.cpp
...write a pass for the llc tool. I register this pass
with the RegisterLLC template. However, when I try to run llc and load
up the pass, I get a failed assertion:
$ /storage/anshuman/llvmCVS/llvm/tools/Debug/llc -load=./libTest.so
--help
...
...
llc: Pass.cpp:327: void
llvm::RegisterPassBase::unregisterPass(llvm::PassInfo*): Assertion `I
!= PassInfoMap->end() && "Pass registered but not in map!"' failed.
Any ideas why I'm getting this? I've attached the pass code below.
(I'm using the cvs version of the LLVM code.)
Thanks
-Anshu
--- Begin pass code ---
#incl...
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...&PI, bool ShouldFree) {
for (std::vector<PassRegistrationListener*>::iterator
I = Impl->Listeners.begin(), E = Impl->Listeners.end(); I != E; ++I)
(*I)->passRegistered(&PI);
-
+
if (ShouldFree) Impl->ToFree.push_back(&PI);
}
void PassRegistry::unregisterPass(const PassInfo &PI) {
- sys::SmartScopedLock<true> Guard(*Lock);
PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(getImpl());
- PassRegistryImpl::MapType::iterator I =
+ PassRegistryImpl::MapType::iterator I =
Impl->PassInfoMap.find(PI.getTypeInfo());
assert...