[LLVMdev] using bugpoint
Ryan M. Lefever
lefever at illinois.edu
Mon Dec 6 02:18:31 PST 2010
I would like to use bugpoint to debug some of my passes. I have read the
documentation, but I don't completely understand it.
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
After transforming X.bc into X.3.bc, if my passes work then I can run
X.3.bc with llc using the following command:
llc X.3.bc arg1 arg2
That llc command is currently seg faulting because of a bug in one of my
passes or in support.bc. Can I use bugpoint to find a smaller version of
X.bc that produces the same problem? Specifically how would I call
bugpoint to do that?
Thanks,
Ryan
More information about the llvm-dev
mailing list