static final class SSADictionary.AllInstructionEnumeration extends Object implements Enumeration<Instruction>
Enumeration
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.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
|
Constructor and Description |
---|
AllInstructionEnumeration(BasicBlock bb,
SSADictionary dict)
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()
Get the next instruction in the enumeration
|
private final Enumeration<Instruction> explicitInstructions
private final Iterator<Instruction> implicitInstructions
private Instruction labelInstruction
AllInstructionEnumeration(BasicBlock bb, SSADictionary dict)
bb
- the basic block whose instructions this enumeratesdict
- the Heap Array SSA informationpublic boolean hasMoreElements()
hasMoreElements
in interface Enumeration<Instruction>
true
or false
public Instruction nextElement()
nextElement
in interface Enumeration<Instruction>