|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.ir.IREnumeration
public abstract class IREnumeration
This class is not meant to be instantiated.
It simply serves as a place to collect the implementation of primitive IR enumerations.
None of these functions are meant to be called directly from anywhere except IR, Instruction, and BasicBlock.
General clients should use the higher level interfaces provided by those classes.
Nested Class Summary | |
---|---|
static class |
IREnumeration.AllDefsEnum
This class implements an Enumeration of Operand s. |
static class |
IREnumeration.AllInstructionsEnum
This class implements an enumeration of instructions over all instructions for a basic block. |
static class |
IREnumeration.AllUsesEnum
This class implements an Enumeration of Operand . |
Constructor Summary | |
---|---|
IREnumeration()
|
Method Summary | |
---|---|
private static void |
fail(String msg)
|
static Enumeration<BasicBlock> |
forwardBE(IR ir)
A forward enumeration of all the basic blocks in the IR. |
static Enumeration<Instruction> |
forwardGlobalIE(IR ir)
A forward enumeration of all the instructions in the IR. |
static Enumeration<Instruction> |
forwardIntraBlockIE(Instruction start,
Instruction end)
Forward intra basic block instruction enumerations from from start...last inclusive. |
static Enumeration<BasicBlock> |
reverseBE(IR ir)
A reverse enumeration of all the basic blocks in the IR. |
static Enumeration<Instruction> |
reverseGlobalIE(IR ir)
A reverse enumeration of all the instructions in the IR. |
static Enumeration<Instruction> |
reverseIntraBlockIE(Instruction start,
Instruction end)
Reverse intra basic block instruction enumerations from from start...last inclusive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IREnumeration()
Method Detail |
---|
public static Enumeration<Instruction> forwardIntraBlockIE(Instruction start, Instruction end)
NB: start and last _must_ be in the same basic block and must be in the proper relative order. This code does _not_ check this invariant, and will simply fail by eventually thowing a NoSuchElementException if it is not met. Caller's must be sure the invariants are met.
start
- the instruction to start withend
- the instruction to end with
public static Enumeration<Instruction> reverseIntraBlockIE(Instruction start, Instruction end)
NB: start and last _must_ be in the same basic block and must be in the proper relative order. This code does _not_ check this invariant, and will simply fail by eventually thowing a NoSuchElementException if it is not met. Caller's must be sure the invariants are met.
start
- the instruction to start withend
- the instruction to end with
public static Enumeration<Instruction> forwardGlobalIE(IR ir)
ir
- the IR to walk over
public static Enumeration<Instruction> reverseGlobalIE(IR ir)
ir
- the IR to walk over
public static Enumeration<BasicBlock> forwardBE(IR ir)
ir
- the IR to walk over
public static Enumeration<BasicBlock> reverseBE(IR ir)
ir
- the IR to walk over
private static void fail(String msg) throws NoSuchElementException
NoSuchElementException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |