org.jikesrvm.compilers.opt.dfsolver
Interface DF_LatticeCell

All Superinterfaces:
GraphElement, GraphNode
All Known Implementing Classes:
DF_AbstractCell, DominatorCell, IndexPropagation.ArrayCell, IndexPropagation.ObjectCell

public interface DF_LatticeCell
extends GraphNode

Represents a single lattice cell in a dataflow equation system.


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()
          Returns an enumeration of the equations in which this lattice cell is defined.
 Iterator<DF_Equation> getUses()
          Returns an enumeration of the equations in which this lattice cell is used.
 String toString()
          Return a string representation of the cell
 
Methods inherited from interface org.jikesrvm.compilers.opt.util.GraphNode
getIndex, inNodes, outNodes, setIndex
 
Methods inherited from interface org.jikesrvm.compilers.opt.util.GraphElement
getScratch, setScratch
 

Method Detail

getUses

Iterator<DF_Equation> getUses()
Returns an enumeration of the equations in which this lattice cell is used.

Returns:
an enumeration of the equations in which this lattice cell is used

getDefs

Iterator<DF_Equation> getDefs()
Returns an enumeration of the equations in which this lattice cell is defined.

Returns:
an enumeration of the equations in which this lattice cell is defined

toString

String toString()
Return a string representation of the cell

Overrides:
toString in class Object
Returns:
a string representation of the cell

addUse

void addUse(DF_Equation eq)
Note that this variable appears on the RHS of an equation

Parameters:
eq - the equation

addDef

void addDef(DF_Equation eq)
Note that this variable appears on the LHS of an equation

Parameters:
eq - the equation