|
|||||||||
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.TraceChords
public abstract class TraceChords
This class visits all the expressions in the a Scribble graph.
$Id: TraceChords.java,v 1.36 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.
This class visits all the expressions in the a Scribble graph, but does so on a per statement basis. Hence, each expression node may be visited multiple times.
For each statement in a Scribble graph, this class initiates a traversal of the data dependence graph associated with the current node. The current statement is recorded in a "global" variable.
Field Summary | |
---|---|
protected Stack<Expr> |
rl
Allows expressions to be visited in leaf -> root order. |
protected Chord |
thisChord
The current statment in the traversal. |
protected Stack<Expr> |
wl
Work list of expressions to visit. |
Constructor Summary | |
---|---|
TraceChords()
Construct a predicate to visit the statements in a Scribble graph. |
Method Summary | |
---|---|
Chord |
getChord()
Return the current statment begin traversed. |
protected void |
setChord(Chord stmt)
Set the statement to be used. |
void |
visitChord(Chord c)
Visit each statement and traverse the expression tree (if any) connected to it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Chord thisChord
protected Stack<Expr> wl
protected Stack<Expr> rl
Constructor Detail |
---|
public TraceChords()
Method Detail |
---|
public Chord getChord()
protected void setChord(Chord stmt)
stmt
- is the statement associated with the expression.public void visitChord(Chord c)
Note - this logic assumes that the expression tree is a tree and not a dag.
visitChord
in class Supertype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |