[LLVMdev] PassManager and dependencies
ccarter at cs.uiuc.edu
Fri Oct 18 23:54:00 PDT 2002
I can't seem to figure out how to tell the PassManager that one Pass
requires the results of two other Passes, in such a way that it will not
crash itself. Attached file is the simplest possible example of Passes
A, B, and C, such that C's getAnalysisUsage(AU) method calls
AU.addRequired<A>() and AU.addRequired<B>().
When I try to run opt -load ... -opt-c, it tells me:
opt: PassManagerT.h:348: void PassManagerT<UnitType>::markPassUsed (const PassInfo *, Pass *) [with UnitType = Module]: Assertion `Parent != 0 && "Pass available but not found!"' failed.
I don't grok this error message. Of course, -opt-a and -opt-b both work
fine in isolation.
Casey at Carter.net
ccarter at uiuc.edu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the llvm-dev