[LLVMdev] Help with pass registration

Chris Lattner sabre at nondot.org
Fri Sep 8 23:49:11 PDT 2006

On Fri, 8 Sep 2006, Fernando Magno Quintao Pereira wrote:
>    I have updated my LLVM to the top of CVS, and now I am getting
> errors like this one below when I write new passes:

What does your getAnalysisUsage method look like?


> "llc: PassManagerT.h:387: void
> llvm::PassManagerT<Trait>::markPassUsed(const llvm::PassInfo*,
> llvm::Pass*) [with Trait = llvm::FTraits]: Assertion
> `getAnalysisOrNullUp(P) &&
> dynamic_cast<ImmutablePass*>(getAnalysisOrNullUp(P)) && "Pass available
> but not found! " "Perhaps this is a module pass requiring a function
> pass?"' failed."
> Could someone give me pointers to know more about this type of errors? I
> think I am not registering my new passes properly in the new llvm
> distribution,
> because I am getting this even if I try to write a very simple machine
> function pass that only returns false and preserves all the other passes.
> Thanks a lot,
> Fernando
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list