[LLVMdev] Adding an object to llc (analysis pass)

Fernando Magno Quintao Pereira fernando at CS.UCLA.EDU
Tue May 30 10:51:32 PDT 2006

Hi. I remember I had some similar problems some weeks ago. My problem was
that I was using "makellvm llc" from my working directory, but it caused
the libraries to be "unsynchronized". To solve, just make your application
from the root directory (e.g.: $HOME/llvm> make).

> Everthing now compiles fine, but when running llc with invoking my own backend
> derived from the cbackend i get the following error:
> llc -f -march my_backend a.out.bc
> llc: PassManagerT.h:387: void llvm::PassManagerT<Trait>::markPassUsed(const
> llvm::PassInfo*, llvm::Pass*) [with Trait = llvm::MTraits]: Assertion
> `getAnalysisOrNullUp(P) &&
> dynamic_cast<ImmutablePass*>(getAnalysisOrNullUp(P)) && "Pass available but
> not found! " "Perhaps this is a module pass requiring a function pass?"'
> failed.
> llc((anonymous namespace)::PrintStackTrace()+0x1f)[0x880791f]
> /lib/tls/libc.so.6(abort+0x1d2)[0xb7d00fa2]
> /lib/tls/libc.so.6(__assert_fail+0x10f)[0xb7cf92df]
> llc(llvm::PassManagerT<llvm::MTraits>::markPassUsed(llvm::PassInfo const*,
> llvm::Pass*)+0xf6)[0x8736c36]
> Aborted

More information about the llvm-dev mailing list