Viewing graphs while debugging code under windows?

hi all,

i just install gv and dotty for windows, but i cant see any way to
configure it using cmake.

is Viewing graphs under windows supported? and how could i configure it?

regards

--ether

LLVM doesn't use a specific search path to find the relevant
executables for that feature. I don't see any obvious reason why it
shouldn't work as long as the relevant executables are available in
the PATH.

-Eli

hi eli,

i delete the cache of cmake, and reconfigure the project, but
HAVE_GRAPHVIZ still undefine. do you know what i should do? thanks
very much.

regards
--ether

Hi Ether,

I work under Windows and am able to view graphs generated by LLVM. I haven't tried generating and viewing dog graphs while debugging but I hope this helps. What I do is to invoke llc.exe and pass a switch to generate the graph at the stage(s) you want to see (DAG combine, legalize, scheduling, etc), for example: llc.exe mykernel.ll -view-legalize-dags -f. The graphs are saved as .dot files in the user's temp directory in a randomly generated subdirectory name that starts with LLVM. I open the file using GVedit.exe and then click on run. I set the layout engine to 'dot' and the output file type to 'png'. The rest of the GVedit settings are the default. Click ok on the settings page and you're done. You should see a .png file in the temp directory.

Thanks,
Javier

Hi Ether,

The detection for graphviz / dotty / ... has been added recently to llvm cmake. It should work properly if those tools are available in the PATH. The related svn commits are : 86153, 86547 and 86644. Those commits are not present in llvm release <= 2.6, but they are straight forward to apply.

Best regards,

hi all,

thank you very much, my llvm is at version 2.6, i will try to patch
the cmake file.

regards
--ether