|
|||||||||||
| 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
org.jikesrvm.compilers.opt.controlflow.DominatorCell
class DominatorCell
DominatorCell represents a set of basic blocks, used in the dataflow calculation
| Field Summary | |
|---|---|
(package private) BasicBlock |
block
The basic block corresponding to this lattice cell. |
private static int |
CAPACITY
A guess of the upper bound on the number of out edges for most basic blocks. |
(package private) BitVector |
dominators
Bit set representation of the dominators for this basic block. |
(package private) IR |
ir
Pointer to the governing IR. |
| Constructor Summary | |
|---|---|
DominatorCell(BasicBlock bb,
IR ir)
Make a bit set for a basic block |
|
| Method Summary | |
|---|---|
void |
addSingleBlock(BasicBlock bb)
Include a single basic block in this set. |
void |
setTOP(IR ir)
Include all basic blocks in this set. |
String |
toString()
Return a String representation of this cell. |
| Methods inherited from class org.jikesrvm.compilers.opt.dfsolver.DF_AbstractCell |
|---|
addDef, addUse, getDefs, getIndex, getScratch, getUses, inNodes, outNodes, setIndex, setScratch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final IR ir
final BasicBlock block
BitVector dominators
private static final int CAPACITY
| Constructor Detail |
|---|
public DominatorCell(BasicBlock bb,
IR ir)
bb - the basic blockir - the governing IR| Method Detail |
|---|
public String toString()
toString in interface DF_LatticeCelltoString in class DF_AbstractCellpublic void addSingleBlock(BasicBlock bb)
bb - the basic blockpublic void setTOP(IR ir)
TODO: make this more efficient.
ir - the governing ir
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||