[LLVMdev] using bugpoint

Duncan Sands baldrick at free.fr
Mon Dec 6 05:17:22 PST 2010


Hi Ryan,

> I have a bitcode file X.bc that I transform using the following commands:
>
> opt -mypass1 -f -o X.1.bc X.bc // transform with mypass1
> llvm-link -f -o X.2.bc X.1.bc support.bc // link with support.bc
> opt -mypass2 -f -o X.3.bc X.2.bc // transform with mypass2

I suggest you do a debug build of LLVM and your pass (so assertions are
enabled), and add "-verify" to the opt command line after "-mypassX".
This may already be enough to narrow down where things are going wrong.

Ciao,

Duncan.



More information about the llvm-dev mailing list