[LLVMdev] Graphviz and LLVM-TV

Ioannis Nousias ioannis.nousias at googlemail.com
Thu Aug 13 08:56:24 PDT 2009


Hi

I'm trying to get a graphviz output (DOT) of a code I'm compiling. I 
want to see the DFG/CFG of the LLVM assembly, how the operations are 
chained together. The documentation mentions something about calling 
certain methods from within gdb, but isn't there some option when 
invoking the compiler (I've seen some -print-cfg and -dot-cfg options 
mentioned in some source files, but I can't find which tool supports them)

Also, LLVM-TV seems outdated. I've tried to compile it with 2.5 LLVM and 
got various errors due to API changes. Tried to correct them, but got 
overwhelmed. Has the project been abandoned?


thanks,
Ioannis






More information about the llvm-dev mailing list