From 37c2c6c860cb682c8b3c8cc4b86fc029a9cd65de Mon Sep 17 00:00:00 2001
From: Jim Laskey
Date: Mon, 2 Oct 2006 12:28:07 +0000
Subject: Update documentaion of node annotation (coloring) in viewGraph.
llvm-svn: 30687
---
llvm/docs/ProgrammersManual.html | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
(limited to 'llvm/docs/ProgrammersManual.html')
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
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().
+
--
cgit v1.2.3