|
SandMark version 2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.util.controlflowgraph.GraphNode | +--sandmark.util.controlflowgraph.BasicBlock
BasicBlock represents a basic block in a control flow graph. Some of the ideas in this class are based upon the BLOAT project from Purdue. Written by Ginger Myles, 6/6/02.
Field Summary | |
(package private) java.util.ArrayList |
domChildren
|
(package private) java.util.ArrayList |
domFrontier
|
(package private) BasicBlock |
dominator
|
(package private) MethodCFG |
graph
|
(package private) BasicBlock |
header
|
(package private) de.fub.bytecode.generic.InstructionHandle |
ih
|
(package private) java.util.ArrayList |
instructions
|
(package private) java.util.ArrayList |
pdomChildren
|
(package private) java.util.ArrayList |
pdomFrontier
|
(package private) BasicBlock |
postDominator
|
Fields inherited from class sandmark.util.controlflowgraph.GraphNode |
postIndex, predecessors, preIndex, successors |
Constructor Summary | |
BasicBlock(de.fub.bytecode.generic.InstructionHandle ih,
MethodCFG graph)
Constructor. |
|
BasicBlock(MethodCFG graph)
|
Method Summary | |
void |
addInst(de.fub.bytecode.generic.InstructionHandle inst)
Adds an instruction to this basic block's instruction list. |
void |
addPred(BasicBlock pred)
Adds a basic block to this basic block's predecessor list. |
void |
addSucc(BasicBlock succ)
Adds a basic block to this basic block's successor list. |
boolean |
dominates(BasicBlock block)
Returns whether or not this block dominates a given block. |
(package private) java.util.ArrayList |
getDomChildren()
|
(package private) java.util.ArrayList |
getDomFrontier()
|
(package private) BasicBlock |
getDominator()
|
BasicBlock |
getHeader()
Returns the header associated with the block. |
de.fub.bytecode.generic.InstructionHandle |
getIH()
Returns the instruction handler associated with this block. |
java.util.ArrayList |
getInstList()
Returns this blocks instruction list. |
(package private) java.util.ArrayList |
getPDomChildren()
|
(package private) java.util.ArrayList |
getPDomFrontier()
|
(package private) BasicBlock |
getPostDominator()
|
boolean |
postDominates(BasicBlock block)
Returns whether or not this block post dominates a given block. |
(package private) void |
setDominator(BasicBlock block)
|
void |
setHeader(BasicBlock header)
Sets the header of a basic block. |
(package private) void |
setPostDominator(BasicBlock block)
|
java.lang.String |
toString()
Returns a string representation of the block. |
Methods inherited from class sandmark.util.controlflowgraph.GraphNode |
getPredessors, getSuccessors, postOrderIndex, preOrderIndex, setPostOrderIndex, setPreOrderIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
MethodCFG graph
de.fub.bytecode.generic.InstructionHandle ih
java.util.ArrayList instructions
BasicBlock dominator
BasicBlock postDominator
java.util.ArrayList domChildren
java.util.ArrayList pdomChildren
java.util.ArrayList domFrontier
java.util.ArrayList pdomFrontier
BasicBlock header
Constructor Detail |
public BasicBlock(de.fub.bytecode.generic.InstructionHandle ih, MethodCFG graph)
public BasicBlock(MethodCFG graph)
Method Detail |
public de.fub.bytecode.generic.InstructionHandle getIH()
public void setHeader(BasicBlock header)
public BasicBlock getHeader()
public void addSucc(BasicBlock succ)
public void addPred(BasicBlock pred)
public void addInst(de.fub.bytecode.generic.InstructionHandle inst)
public java.util.ArrayList getInstList()
public java.lang.String toString()
toString
in class java.lang.Object
java.util.ArrayList getDomChildren()
java.util.ArrayList getPDomChildren()
BasicBlock getDominator()
BasicBlock getPostDominator()
void setDominator(BasicBlock block)
void setPostDominator(BasicBlock block)
public boolean dominates(BasicBlock block)
public boolean postDominates(BasicBlock block)
java.util.ArrayList getDomFrontier()
java.util.ArrayList getPDomFrontier()
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |