[LLVMdev] help interpreting DSGraph->dump

Chris Lattner sabre at nondot.org
Wed Oct 30 20:48:01 PST 2002


> > First off, make sure you are sending the graphs through the "dot"
> > utility. It turns them into a nice format that is much easier to
> > visualize than the text format... :)
>
> hmmm... how do I get to use the magical "dot" utility? It sounds
> pretty much like what I'm looking for, and I found it in
> lib/Analysis/DataStructure/Printer.cpp, but fails to see how to use
> it.  can you give me a snippet of code to send me in the right
> direction?

"dot" is part of the AT&T Graphviz package:
http://www.research.att.com/sw/tools/graphviz/

It supports lots of output formats.  I use the postscript output, like
this:

dot -Tps < ds.foo.dot > ds.foo.ps

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list