|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.LocalCSE.AvExCache
protected static final class LocalCSE.AvExCache
Implements a cache of Available Expressions
Field Summary | |
---|---|
private ArrayList<LocalCSE.AvailableExpression> |
cache
Implementation of the cache |
private boolean |
doMemory
|
private OptOptions |
options
|
Constructor Summary | |
---|---|
LocalCSE.AvExCache(OptOptions opts,
boolean doMem)
|
Method Summary | |
---|---|
void |
eliminate(Instruction s)
Eliminate all AE tuples that are killed by a given instruction |
private void |
eliminate(RegisterOperand op)
Eliminate all AE tuples that contain a given operand |
LocalCSE.AvailableExpression |
find(Instruction inst)
Find and return a matching available expression. |
void |
insert(Instruction inst)
Insert a new available expression in the cache |
void |
invalidateAllLoads()
Eliminate all AE tuples that cache ANY memory location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ArrayList<LocalCSE.AvailableExpression> cache
private final OptOptions options
private final boolean doMemory
Constructor Detail |
---|
LocalCSE.AvExCache(OptOptions opts, boolean doMem)
Method Detail |
---|
public LocalCSE.AvailableExpression find(Instruction inst)
inst
- the instruction to match
public void insert(Instruction inst)
inst
- the instruction that defines the AEprivate void eliminate(RegisterOperand op)
op
- the operand in questionpublic void eliminate(Instruction s)
s
- the store instructionpublic void invalidateAllLoads()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |