I am trying to generate the dot files to view control flow graphs with the following command :
$ opt -dot-cfg -disable-output foo.ll but no files are generated (I have looked through the hidden files too). Kindly guide me on how to generate and view CFGs.
Thanks in anticipation.
That’s odd, you should get dot file outputs for all the functions present in foo.ll, with the output:
Are you able to invoke any other pass with opt, also share the content of foo.ll
optnone (link) will prevent
-dot-cfg from running