First of all, I am new to MacOS, and what I want is to be able to see the output of llc -view-dag-combine1-dags sum.ll
. On Mac, llc will generate dot in /tmp
directory, and try open App to show the dot file.
I have tried Graphviz, but it doesn't work (the program crash). I would like try something else, like xdot for example. I install it by brew install xdot
, but don't know how to let the MacOS use the xdot
I just installed to open the dot file.
Or any other better tool to view the dot file? I would like to keep thing as simple as possible.
Homebrew has graphviz which is command line only. I would suggest using MacPorts to install graphviz-gui, that will save us from a lot of trouble.