public static final class IREnumeration.AllInstructionsEnum extends Object implements Enumeration<Instruction>
SSADictionary| Modifier and Type | Field and Description |
|---|---|
private Enumeration<Instruction> |
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 and Description |
|---|
AllInstructionsEnum(IR ir,
BasicBlock block)
Construct an enumeration for all instructions, both implicit and
explicit in the IR, for a given basic block
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Are there more elements in the enumeration?
|
Instruction |
nextElement() |
private final Enumeration<Instruction> explicitInstructions
private final Iterator<Instruction> implicitInstructions
private Instruction labelInstruction
public AllInstructionsEnum(IR ir, BasicBlock block)
ir - the containing IRblock - the basic block whose instructions this enumeratespublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<Instruction>true or falsepublic Instruction nextElement()
nextElement in interface Enumeration<Instruction>