[llvm-dev] Better way to visualize the DOT on Mac?

Tobias Grosser via llvm-dev llvm-dev at lists.llvm.org
Sun Mar 19 07:57:23 PDT 2017



On Sun, Mar 19, 2017, at 09:43 AM, 陳韋任 via llvm-dev wrote:
> Hi all,
> 
>   I would like to visualize the SelectionDAG result on Mac. The link
> mentioned on [1] says the package is no longer maintained, and direct me
> to [2]. I find the package on [2] also seems not be well maintained.
> 
>   Does anyone know a better way to install Graphviz on Mac, so that when
>   I
> type `llc -view-dag-combine1-dags sum.ll`, a visualizer will pop up to
> show
> the result? Thanks.

I use this script: https://github.com/jrfonseca/xdot.py

But AFAIK you still need some graphviz to for the layouting. Still
thought, this might be useful for you.

Best,
Tobias


> 
> [1]
> http://llvm.org/docs/ProgrammersManual.html#viewing-graphs-while-debugging-code
> [2] http://www.graphviz.org/Download_macos.php
> 
> Regards,
> chenwj
> 
> -- 
> Wei-Ren Chen (陳韋任)
> Homepage: http://people.cs.nctu.edu.tw/~chenwj
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list