diff options
author | Madhur Amilkanthwar <Madhur.Amilkanthwar@amd.com> | 2020-06-04 09:51:18 +0530 |
---|---|---|
committer | Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> | 2020-06-04 11:51:48 +0530 |
commit | b3cff3c72092e40df12a55535a4d0d10cd1d62ce (patch) | |
tree | 7c9ac13e4e4af7686b40f86cfdc3e697915fe456 /clang/lib/Lex/ModuleMap.cpp | |
parent | b28167928d2722e8774da3fce8b3307a0fa27245 (diff) | |
download | llvm-b3cff3c72092e40df12a55535a4d0d10cd1d62ce.zip llvm-b3cff3c72092e40df12a55535a4d0d10cd1d62ce.tar.gz llvm-b3cff3c72092e40df12a55535a4d0d10cd1d62ce.tar.bz2 |
Utility to dump .dot representation of SelectionDAG without firing viewer
Summary:
This patch adds support for dumping .dot
representation of SelectionDAG. It is inspired from the fact that,
a developer may want to just dump the graph at
a predictable path with a simple name to compare.
The exisitng utility (i.e. viewGraph) are overkill
for this motive hence this patch adds the requires support
while using the core routines from GraphWriter.
Example usage: DAG.dumpDotGraph("/tmp/graph.dot", "MyGraph")
will create /tmp/graph.dot file when DAG is an
object of SelectionDAG class.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D80711
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions