diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 11f24356727..d16cff81dc0 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -516,7 +516,7 @@ instructions in the block. Similarly, there also exists Function::viewCFGOnly() (does not include the instructions), the MachineFunction::viewCFG() and MachineFunction::viewCFGOnly(), and the SelectionDAG::viewGraph() methods. Within GDB, for example, -you can usually use something like "call DAG.viewGraph()" to pop +you can usually use something like call DAG.viewGraph() to pop up a window. Alternatively, you can sprinkle calls to these functions in your code in places you want to debug.

@@ -529,6 +529,18 @@ href="http://www.pixelglow.com/graphviz/">Graphviz program, and add it) to your path. Once in your system and path are set up, rerun the LLVM configure script and rebuild LLVM to enable this functionality.

+

SelectionDAG has been extended to make it easier to locate +interesting nodes in large complex graphs. From gdb, if you +call DAG.setGraphColor(node, "color"), then the +next call DAG.viewGraph() would hilight the node in the +specified color (choices of colors can be found at Colors.) More +complex node attributes can be provided with call +DAG.setGraphAttrs(node, "attributes") (choices can be +found at Graph +Attributes.) If you want to restart and clear all the current graph +attributes, then you can call DAG.clearGraphAttrs().

+