|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.dfsolver.DF_AbstractCell
public abstract class DF_AbstractCell
DF_LatticeCell.java Represents a single lattice cell in a dataflow system.
| Field Summary | |
|---|---|
private HashSet<DF_Equation> |
defs
Set of DF_Equations which define this lattice cell. |
private int |
index
Field used for GraphNode interface. |
private int |
scratch
|
private HashSet<DF_Equation> |
uses
Set of DF_Equations which use this lattice cell. |
| Constructor Summary | |
|---|---|
DF_AbstractCell()
Default Constructor |
|
DF_AbstractCell(int capacity)
This constructor bounds the initial capacity to save space. |
|
| Method Summary | |
|---|---|
void |
addDef(DF_Equation eq)
Note that this variable appears on the LHS of an equation. |
void |
addUse(DF_Equation eq)
Note that this variable appears on the RHS of an equation. |
Iterator<DF_Equation> |
getDefs()
Return an enumeration of the equations in which this lattice cell is defined. |
int |
getIndex()
Implementation of GraphNode interface. |
int |
getScratch()
read the scratch field of int type |
Iterator<DF_Equation> |
getUses()
Returns an enumeration of the equations in which this lattice cell is used. |
GraphNodeEnumeration |
inNodes()
Get an enumeration of all the edges at which edges that point to this node are sourced. |
GraphNodeEnumeration |
outNodes()
Get an enumeration of all the edges to which edges sourced at this node point. |
void |
setIndex(int i)
Implementation of GraphNode interface. |
int |
setScratch(int o)
set the scratch field of int type |
abstract String |
toString()
Return a string representation of the cell |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final HashSet<DF_Equation> uses
private final HashSet<DF_Equation> defs
private int index
private int scratch
| Constructor Detail |
|---|
public DF_AbstractCell()
public DF_AbstractCell(int capacity)
capacity - the initial capacity of the "uses" set| Method Detail |
|---|
public Iterator<DF_Equation> getUses()
getUses in interface DF_LatticeCellpublic Iterator<DF_Equation> getDefs()
getDefs in interface DF_LatticeCellpublic abstract String toString()
toString in interface DF_LatticeCelltoString in class Objectpublic void addUse(DF_Equation eq)
addUse in interface DF_LatticeCelleq - the equationpublic void addDef(DF_Equation eq)
addDef in interface DF_LatticeCelleq - the equationpublic GraphNodeEnumeration inNodes()
GraphNode
inNodes in interface GraphNodepublic GraphNodeEnumeration outNodes()
GraphNode
outNodes in interface GraphNodepublic void setIndex(int i)
setIndex in interface GraphNodepublic int getIndex()
getIndex in interface GraphNodepublic int getScratch()
GraphElement
getScratch in interface GraphElementpublic int setScratch(int o)
GraphElement
setScratch in interface GraphElemento - the new contents of the int scratch field
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||