This is very similar to what we do for CFG and SelectionDAG.
I find it very useful when I'm in VisualStudio (or any other debugger). I can just print DT.viewGraph() and that pops a new window with the dom displayed. As far as I can tell the only other way to dump the dom is manually using DT.print(dbgs()), which for large dominator trees is not that readable.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
So, i use -view-dom-tree, which does this.
But i can understand wanting to do it programmatically, so LGTM.