From 733783b27c9f07d090747213e2a2db646eaeb18a Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Fri, 7 May 2010 09:33:18 +0000 Subject: [PATCH] Document graphviz passes for the (post) dominator tree. Add documentation for: -dot-dom -dot-dom-only -dot-postdom -dot-postdom-only -view-dom -view-dom-only -view-postdom -view-postdom-only git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103251 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/Passes.html | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/docs/Passes.html b/docs/Passes.html index 0f8f69e5ab5..b49d3a0e269 100644 --- a/docs/Passes.html +++ b/docs/Passes.html @@ -85,6 +85,10 @@ perl -e '$/ = undef; for (split(/\n/, <>)) { s:^ *///? ?::; print "

\n" if ! -dot-callgraphPrint Call Graph to 'dot' file -dot-cfgPrint CFG of function to 'dot' file -dot-cfg-onlyPrint CFG of function to 'dot' file (with no function bodies) +-dot-domPrint dominator tree of function to 'dot' file +-dot-dom-onlyPrint dominator tree of function to 'dot' file (with no function bodies) +-dot-postdomPrint post dominator tree of function to 'dot' file +-dot-postdom-onlyPrint post dominator tree of function to 'dot' file (with no function bodies) -globalsmodref-aaSimple mod/ref analysis for globals -instcountCounts the various types of Instructions -intervalsInterval Partition Construction @@ -177,6 +181,10 @@ perl -e '$/ = undef; for (split(/\n/, <>)) { s:^ *///? ?::; print "

\n" if ! -verifyModule Verifier -view-cfgView CFG of function -view-cfg-onlyView CFG of function (with no function bodies) +-view-domView dominator tree of function +-view-dom-onlyView dominator tree of function (with no function bodies) +-view-postdomView post dominator tree of function +-view-postdom-onlyView post dominator tree of function (with no function bodies) @@ -321,6 +329,58 @@ perl -e '$/ = undef; for (split(/\n/, <>)) { s:^ *///? ?::; print "

\n" if !

+ Print dominator tree of function to 'dot' file +
+
+

+ This pass, only available in opt, prints the dominator tree + into a .dot graph. This graph can then be processed with the + "dot" tool to convert it to postscript or some other suitable format. +

+
+ + +
+ Print dominator tree of function to 'dot' file (with no + function bodies) +
+
+

+ This pass, only available in opt, prints the dominator tree + into a .dot graph, omitting the function bodies. This graph can + then be processed with the "dot" tool to convert it to postscript or some + other suitable format. +

+
+ + +
+ Print post dominator tree of function to 'dot' file +
+
+

+ This pass, only available in opt, prints the post dominator tree + into a .dot graph. This graph can then be processed with the + "dot" tool to convert it to postscript or some other suitable format. +

+
+ + +
+ Print post dominator tree of function to 'dot' file + (with no function bodies) +
+
+

+ This pass, only available in opt, prints the post dominator tree + into a .dot graph, omitting the function bodies. This graph can + then be processed with the "dot" tool to convert it to postscript or some + other suitable format. +

+
+ + +
Simple mod/ref analysis for globals
@@ -1752,6 +1812,52 @@ if (X < 3) {

+ +
+ View dominator tree of function +
+
+

+ Displays the dominator tree using the GraphViz tool. +

+
+ + +
+ View dominator tree of function (with no function + bodies) + +
+
+

+ Displays the dominator tree using the GraphViz tool, but omitting function + bodies. +

+
+ + +
+ View post dominator tree of function +
+
+

+ Displays the post dominator tree using the GraphViz tool. +

+
+ + +
+ View post dominator tree of function (with no + function bodies) + +
+
+

+ Displays the post dominator tree using the GraphViz tool, but omitting + function bodies. +

+
+
-- 2.11.0