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.
I never used 'llc' before.
But in my case to deal with the .dot file
I used brew install graphviz
Then used the following command to convert .dot to .png
dot -Tpng DocName.dot -o DocName.png
It works every time without crash.