summaryrefslogtreecommitdiff
path: root/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
commit543a0eee6a733ae0116d64fb2c4af979a495babc (patch)
tree854563633115b7f0d0d9947eb8259cbb0611bcba /docs/ProgrammersManual.html
parentec20402c90b605afeedbcf0e3aabe6f8054f23dd (diff)
downloadllvm-543a0eee6a733ae0116d64fb2c4af979a495babc.tar.gz
llvm-543a0eee6a733ae0116d64fb2c4af979a495babc.tar.bz2
llvm-543a0eee6a733ae0116d64fb2c4af979a495babc.tar.xz
Update documentaion of node annotation (coloring) in viewGraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 11f2435672..d16cff81dc 100644
--- a/docs/ProgrammersManual.html
+++ b/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>