|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.IREnumeration.AllInstructionsEnum
public static final class IREnumeration.AllInstructionsEnum
This class implements an InstructionEnumeration over
all instructions for a basic block. This enumeration includes
explicit instructions in the IR and implicit phi instructions for
heap variables, which are stored only in this lookaside
structure.
SSADictionary| Field Summary | |
|---|---|
private InstructionEnumeration |
explicitInstructions
An enumeration of the explicit instructions in the IR for a basic block |
private Iterator<Instruction> |
implicitInstructions
An enumeration of the implicit instructions in the IR for a basic block. |
private Instruction |
labelInstruction
The label instruction for the basic block - the label is special as we want it to appear in the enumeration before the implicit SSA instructions |
| Constructor Summary | |
|---|---|
IREnumeration.AllInstructionsEnum(IR ir,
BasicBlock block)
Construct an enumeration for all instructions, both implicit and explicit in the IR, for a given basic block |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Are there more elements in the enumeration? |
Instruction |
next()
Get the next instruction in the enumeration |
Instruction |
nextElement()
Get the next instruction in the enumeration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final InstructionEnumeration explicitInstructions
private final Iterator<Instruction> implicitInstructions
private Instruction labelInstruction
| Constructor Detail |
|---|
public IREnumeration.AllInstructionsEnum(IR ir,
BasicBlock block)
block - the basic block whose instructions this enumerates| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<Instruction>public Instruction next()
next in interface InstructionEnumerationpublic Instruction nextElement()
nextElement in interface Enumeration<Instruction>
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||