Package EDU.purdue.cs.bloat.cfg
Class DominatorTree
- java.lang.Object
-
- EDU.purdue.cs.bloat.cfg.DominatorTree
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUG
-
Constructor Summary
Constructors Constructor Description DominatorTree()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbuildTree(FlowGraph graph, boolean reverse)Calculates what vertices dominate other verices and notify the basic Blocks as to who their dominator is.
-
-
-
Method Detail
-
buildTree
public static void buildTree(FlowGraph graph, boolean reverse)
Calculates what vertices dominate other verices and notify the basic Blocks as to who their dominator is.- Parameters:
graph- The cfg that is used to find the dominator tree.reverse- Do we go in revsers? That is, are we computing the dominatance (false) or postdominance (true) tree.- See Also:
Block
-
-