[LLVMdev] how to dump data stuctures of llvm in llvm-gcc

Duncan Sands baldrick at free.fr
Fri May 18 01:31:49 PDT 2007


Hi Manish,

> Can any one please tell me the option in llvm-gcc to dump data
> structures of llvm and llvm IR.

if you compile with -emit-llvm then the compiler outputs llvm IR
if you compile with -c, and llvm assembler (bytecode in human
readable form) if you compile with -S.

I hope this helps,

Duncan.



More information about the llvm-dev mailing list