|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BasicBlockInterf
is the interface that needs to be
implemented by any "basic block"-like structure. Basic
block views of the code groups together lists of consecutive
instructions in basic blocks. For each basic block, we have a list
of statements contained by it, a set of predecessor basic blocks
and a set of successor basic blocks. Different implementations of
BasicBlockInterf
respect different sets of constraints.
Method Summary | |
void |
accept(BasicBlockInterfVisitor visitor)
Calls the appropriate visit method from
visitor . |
HCodeElement |
getFirst()
Returns the first statement of the basic block. |
HCodeElement |
getLast()
Returns the last statement of the basic block. |
Set |
nextSet()
Returns all the successors of the basic block, according to the normal and the exceptional control flow. |
Set |
prevSet()
Returns all the predecessors of the basic block, according to the normal and the exceptional control flow. |
List |
statements()
Returns the list of the statements composing the basic block. |
Method Detail |
public HCodeElement getFirst()
public HCodeElement getLast()
public Set prevSet()
public Set nextSet()
public List statements()
public void accept(BasicBlockInterfVisitor visitor)
visit
method from
visitor
. The concept of
BasicBlockInterfVisitor
is similar to the concept
of QuadVisitor
. Both of them were introduced to
allow pure object oriented programming, that is virtual
methods instead of instanceof
tests.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |