Add spirv-cfg to dump a GraphViz graph of the CFG
authorDavid Neto <dneto@google.com>
Wed, 3 Aug 2016 15:55:14 +0000 (11:55 -0400)
committerDavid Neto <dneto@google.com>
Thu, 11 Aug 2016 15:24:51 +0000 (11:24 -0400)
commit996a814ae382fb73717213791e570cc88e308a00
tree95fbb0e58ac5d42b90b185bb106b201df062fe20
parent23266c9b56230df8ad66590a72c4273027b4579c
Add spirv-cfg to dump a GraphViz graph of the CFG

This is experimental, and has not tests.
It's been used to debug validation of structured control flow.

- Has a legend describing special arcs to merge blocks and continue
  targets.
- Labels the function entry block, with the Id of the function.
CHANGES
README.md
tools/CMakeLists.txt
tools/cfg/bin_to_dot.cpp [new file with mode: 0644]
tools/cfg/bin_to_dot.h [new file with mode: 0644]
tools/cfg/cfg.cpp [new file with mode: 0644]