When debugging SelectionDAG on an IR with many basic blocks, It is painful to have to generate the graphviz for the 99 first blocks when you are interested in the 100.
This patch add a string parameter that allows to filter the "block of interest".
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
What about the idea of filtering by name rather than by number? The problem with filtering by number is that it depends on you already knowing what number block you want to visualize.
+llvm-commit
I don't have a strong opinion between string and number. Number is less messy and you always get them at the MI level or in SelectionDAG, on the other hand string matches the IR so is probably more convenient if you start from there.
I updated with the string version.
My 2cents: In another compiler I worked with this simply worked by creating several files on the harddrive. This required you to start the viewer manually but was way more convenient when switching back and forth between different functions and phases of the compilation...
Yeah I was also thinking about such an option, but it seems orthogonal to the option I implemented here IMO.
Mehdi
Looks fine to me otherwise.
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | ||
---|---|---|
188 ↗ | (On Diff #18076) | Shouldn't it be "view-*-dags"? |