|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.controlflow.Diamond
final class Diamond
This class represents a diamond (if-then-else) structure in the control-flow graph.
Field Summary | |
---|---|
private BasicBlock |
bottom
The bottom of the diamond |
private BasicBlock |
notTaken
The "not-taken" branch of the diamond (might be null) |
private BasicBlock |
taken
The "taken" branch of the diamond (might be null) |
private BasicBlock |
top
The top of the diamond |
Constructor Summary | |
---|---|
Diamond(BasicBlock top,
BasicBlock taken,
BasicBlock notTaken,
BasicBlock bottom)
|
Method Summary | |
---|---|
(package private) static Diamond |
buildDiamond(BasicBlock bb)
See if bb is the root of a diamond. |
private static Diamond |
fourElementDiamond(BasicBlock top,
BasicBlock left,
BasicBlock right,
BasicBlock bottom)
Given that four blocks form a diamond, return the correct structure. |
(package private) BasicBlock |
getBottom()
The bottom of the diamond |
(package private) BasicBlock |
getNotTaken()
The "not-taken" branch of the diamond (might be null) |
(package private) BasicBlock |
getTaken()
The "taken" branch of the diamond (might be null) |
(package private) BasicBlock |
getTop()
The top of the diamond |
private static Diamond |
threeElementDiamond(BasicBlock top,
BasicBlock side,
BasicBlock bottom)
Given that three blocks form a diamond, return the correct structure. |
String |
toString()
Return a string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final BasicBlock top
private final BasicBlock bottom
private final BasicBlock taken
private final BasicBlock notTaken
Constructor Detail |
---|
Diamond(BasicBlock top, BasicBlock taken, BasicBlock notTaken, BasicBlock bottom)
Method Detail |
---|
BasicBlock getTop()
BasicBlock getBottom()
BasicBlock getTaken()
BasicBlock getNotTaken()
static Diamond buildDiamond(BasicBlock bb)
private static Diamond fourElementDiamond(BasicBlock top, BasicBlock left, BasicBlock right, BasicBlock bottom)
private static Diamond threeElementDiamond(BasicBlock top, BasicBlock side, BasicBlock bottom)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |