[LLVMdev] Graphviz and LLVM-TV

Chris Lattner clattner at apple.com
Thu Aug 13 09:05:00 PDT 2009


On Aug 13, 2009, at 8:56 AM, Ioannis Nousias wrote:

> 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)

This should help:
http://llvm.org/docs/ProgrammersManual.html#ViewGraph

>
> 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?

Yes, it is really really old and abandoned.

-Chris



More information about the llvm-dev mailing list