An alternative I have is to programmatically generate the corresponding bitcode file
at the right time after finishing the pass in discussion - see, for example,
http://stackoverflow.com/questions/13903686/writing-module-to-bc-bitcode-file, methods
WriteBitcodeToFile() or WriteModule() .
Thank you,
Alex
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Usually we disable the llvm optimizations (clang -mllvm disable-llvm-optzns ) and then use opt to run the passes till the point of interest. I don’t know of a shortcut in clang (the new PassManager will make it possible to pass an arbitrary pipeline with a string, but not there yet).
—
Mehdi
(There is a print-after option but it does not work in clang).
—
Mehdi