[IR] Add ability to dump IR graph to dot

This CL adds the ability to dump an IR graph to a dot file. The
`--dump-ir-graph` option is added to the main tint command. The IR code
is moved behind a TINT_BUILD_IR flag in order to allow the GN build to
continue to build the tint program.

Bug: tint:1718
Change-Id: I0953fe2a59a34c21bb6cd288cb90e9d0298af793
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107860
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
dan sinclair
2022-11-01 18:15:50 +00:00
committed by Dawn LUCI CQ
parent 1c755b68e6
commit 9261261da8
7 changed files with 272 additions and 28 deletions

1
.gitignore vendored
View File

@@ -128,3 +128,4 @@ lcov.info
### Clang-Tidy files
all_findings.json
tint.dot