|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.driver.CompilerPhase org.jikesrvm.compilers.opt.controlflow.YieldPoints
public class YieldPoints
This class inserts yield points in
Field Summary |
---|
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase |
---|
container |
Constructor Summary | |
---|---|
YieldPoints()
|
Method Summary | |
---|---|
String |
getName()
Return the name of this phase |
CompilerPhase |
newExecution(IR ir)
This phase contains no per-compilation instance fields. |
void |
perform(IR ir)
Insert yield points in method prologues, loop heads, and method exits |
private void |
prependYield(BasicBlock bb,
Operator yp,
int bcIndex,
InlineSequence position)
Add a YIELD instruction to the appropriate place for the basic block passed. |
private void |
processLoopNest(LSTNode n)
Process all loop heads in a loop nest by inserting a backedge yieldpoint in each of them. |
Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase |
---|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, reportAdditionalStats, setContainer, shouldPerform, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YieldPoints()
Method Detail |
---|
public final String getName()
getName
in class CompilerPhase
public final CompilerPhase newExecution(IR ir)
newExecution
in class CompilerPhase
ir
- the IR that is about to be passed to performPhase
public final void perform(IR ir)
perform
in class CompilerPhase
ir
- the IR on which to apply the phaseprivate void processLoopNest(LSTNode n)
private void prependYield(BasicBlock bb, Operator yp, int bcIndex, InlineSequence position)
bb
- the basic blockyp
- the yieldpoint operator to insertbcIndex
- the bcIndex of the yieldpointposition
- the source position of the yieldpoint
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |