This patch adds a couple of NewPM function passes (dot-dom and dot-dom-only) that dump DomTree into .dot files.
Details
Diff Detail
Unit Tests
Time | Test | |
---|---|---|
90 ms | x64 debian > LLVM.Bindings/Go::go.test |
Event Timeline
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 | 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 |
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