This patch adds a couple of NewPM function passes (dot-dom and dot-dom-only) that dump DomTree into .dot files.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
could you fix the lint checks and also add a test (a simple one is fine)
llvm/include/llvm/Analysis/DOTGraphTraitsPass.h | ||
---|---|---|
186 | probably better to make this not have a default argument |
llvm/test/Analysis/Dominators/print-dot-dom.ll | ||
---|---|---|
1 ↗ | (On Diff #397672) | ideally the files would go in a temp directory (%t) rather than the cwd, but I think the cwd is in the build directory so this is probably fine |
llvm/test/Analysis/Dominators/print-dot-dom.ll | ||
---|---|---|
1 ↗ | (On Diff #397672) |
Yeah, that's correct. There are other tests that do the same thing, like the test from https://reviews.llvm.org/D90638, and it seems to work fine. |
probably better to make this not have a default argument