From 543a0eee6a733ae0116d64fb2c4af979a495babc 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30687 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/ProgrammersManual.html | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
(limited to 'docs/ProgrammersManual.html')
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
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-18-g5258