|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.score.pred.Supertype scale.score.pred.Export scale.score.pred.ExportCFG
public class ExportCFG
This predicate class exports a Scribble CFG so that it can be visualized.
$Id: ExportCFG.java,v 1.78 2007-10-04 19:58:34 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Each predicate builds a term representation appropriate for input to the DisplayGraph visualization tool.
Field Summary |
---|
Fields inherited from class scale.score.pred.Export |
---|
da |
Constructor Summary | |
---|---|
ExportCFG(DisplayGraph da,
Scribble scribble,
int displayFlags)
Display the CFG graphically. |
Method Summary | |
---|---|
void |
traverse(Chord start)
Traverse the CFG to actually build the display. |
void |
traverseDom(Chord start)
Treverse the dominator tree and construct the edges. |
void |
traversePDom(Chord start)
Treverse the dominator tree and construct the edges. |
void |
visitCallExpr(CallExpr e)
|
void |
visitChord(Chord c)
|
void |
visitExpr(Expr e)
|
void |
visitExprChord(ExprChord c)
|
void |
visitIfThenElseChord(IfThenElseChord c)
|
void |
visitLiteralExpr(LiteralExpr e)
|
void |
visitLoadExpr(LoadExpr e)
|
void |
visitLoopHeaderChord(LoopHeaderChord c)
|
Methods inherited from class scale.score.pred.Export |
---|
addAnnotationEdge, addBadEdge, addCfgEdge, addCfgEdges, addClefEdge, addDataEdge, addDataEdges, addDefUseEdge, addDomEdge, addFalseCfgEdge, addGraphNodeEdge, addMayDefEdge, addMayUseEdge, addTrueCfgEdge, addUseDefEdge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExportCFG(DisplayGraph da, Scribble scribble, int displayFlags)
da
- the display graph objectdisplayFlags
- specify what should be displayedDisplayNode
Method Detail |
---|
public void traverse(Chord start)
Note -
this method uses nextVisit()
.
traverse
in class Export
start
- is the first node to traversepublic void traverseDom(Chord start)
public void traversePDom(Chord start)
public void visitExpr(Expr e)
visitExpr
in class Supertype
public void visitLoadExpr(LoadExpr e)
visitLoadExpr
in class Supertype
public void visitLiteralExpr(LiteralExpr e)
visitLiteralExpr
in interface Predicate
visitLiteralExpr
in class Supertype
public void visitExprChord(ExprChord c)
visitExprChord
in interface Predicate
visitExprChord
in class Supertype
public void visitCallExpr(CallExpr e)
visitCallExpr
in class Supertype
public void visitChord(Chord c)
visitChord
in class Supertype
public void visitLoopHeaderChord(LoopHeaderChord c)
visitLoopHeaderChord
in interface Predicate
visitLoopHeaderChord
in class Supertype
public void visitIfThenElseChord(IfThenElseChord c)
visitIfThenElseChord
in interface Predicate
visitIfThenElseChord
in class Supertype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |