summaryrefslogtreecommitdiffstats
path: root/llvm/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-02 12:28:07 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-02 12:28:07 +0000
commit37c2c6c860cb682c8b3c8cc4b86fc029a9cd65de (patch)
tree3e625c4593bc2c510e25b24e24140140ac6f6756 /llvm/docs/ProgrammersManual.html
parent1368c265da62267d73a788adb4428bb4fbc8af8b (diff)
downloadbcm5719-llvm-37c2c6c860cb682c8b3c8cc4b86fc029a9cd65de.tar.gz
bcm5719-llvm-37c2c6c860cb682c8b3c8cc4b86fc029a9cd65de.zip
Update documentaion of node annotation (coloring) in viewGraph.
llvm-svn: 30687
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
-rw-r--r--llvm/docs/ProgrammersManual.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html
index 11f24356727..d16cff81dc0 100644
--- a/llvm/docs/ProgrammersManual.html
+++ b/llvm/docs/ProgrammersManual.html
@@ -516,7 +516,7 @@ instructions in the block. Similarly, there also exists
<tt>Function::viewCFGOnly()</tt> (does not include the instructions), the
<tt>MachineFunction::viewCFG()</tt> and <tt>MachineFunction::viewCFGOnly()</tt>,
and the <tt>SelectionDAG::viewGraph()</tt> methods. Within GDB, for example,
-you can usually use something like "<tt>call DAG.viewGraph()</tt>" to pop
+you can usually use something like <tt>call DAG.viewGraph()</tt> to pop
up a window. Alternatively, you can sprinkle calls to these functions in your
code in places you want to debug.</p>
@@ -529,6 +529,18 @@ href="http://www.pixelglow.com/graphviz/">Graphviz program</a>, 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.</p>
+<p><tt>SelectionDAG</tt> has been extended to make it easier to locate
+<i>interesting</i> nodes in large complex graphs. From gdb, if you
+<tt>call DAG.setGraphColor(<i>node</i>, "<i>color</i>")</tt>, then the
+next <tt>call DAG.viewGraph()</tt> would hilight the node in the
+specified color (choices of colors can be found at <a
+href="http://www.graphviz.org/doc/info/colors.html">Colors<a>.) More
+complex node attributes can be provided with <tt>call
+DAG.setGraphAttrs(<i>node</i>, "<i>attributes</i>")</tt> (choices can be
+found at <a href="http://www.graphviz.org/doc/info/attrs.html">Graph
+Attributes</a>.) If you want to restart and clear all the current graph
+attributes, then you can <tt>call DAG.clearGraphAttrs()</tt>. </p>
+
</div>
OpenPOWER on IntegriCloud