|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.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 Exportstart - is the first node to traversepublic void traverseDom(Chord start)
public void traversePDom(Chord start)
public void visitExpr(Expr e)
visitExpr in class Supertypepublic void visitLoadExpr(LoadExpr e)
visitLoadExpr in class Supertypepublic void visitLiteralExpr(LiteralExpr e)
visitLiteralExpr in interface PredicatevisitLiteralExpr in class Supertypepublic void visitExprChord(ExprChord c)
visitExprChord in interface PredicatevisitExprChord in class Supertypepublic void visitCallExpr(CallExpr e)
visitCallExpr in class Supertypepublic void visitChord(Chord c)
visitChord in class Supertypepublic void visitLoopHeaderChord(LoopHeaderChord c)
visitLoopHeaderChord in interface PredicatevisitLoopHeaderChord in class Supertypepublic void visitIfThenElseChord(IfThenElseChord c)
visitIfThenElseChord in interface PredicatevisitIfThenElseChord in class Supertype
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||