|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.LocalCSE.AvailableExpression
private static final class LocalCSE.AvailableExpression
A tuple to record an Available Expression
Field Summary | |
---|---|
(package private) Instruction |
inst
the instruction which makes this expression available |
(package private) LocationOperand |
location
location operand for memory (load/store) expressions |
(package private) Operator |
opr
the operator of the expression |
(package private) Operand[] |
ops
operands |
(package private) Register |
tmp
temporary register holding the result of the available expression |
Constructor Summary | |
---|---|
LocalCSE.AvailableExpression(Instruction i,
Operator op,
Operand[] ops,
LocationOperand loc,
Register t)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Two AEs are "equal" iff for unary, binary and ternary expressions: the operator and the operands match for loads and stores: if the 2 operands and the location match |
int |
hashCode()
Unused hashcode method |
private boolean |
isBoundsCheck()
Does this expression represent the result of a bounds check? |
private boolean |
isCommutative()
Is this expression commutative? |
boolean |
isLoad()
Does this expression represent the result of a load? |
boolean |
isLoadOrStore()
Does this expression represent the result of a load or store? |
boolean |
isStore()
Does this expression represent the result of a store? |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Instruction inst
final Operator opr
final Operand[] ops
final LocationOperand location
Register tmp
Constructor Detail |
---|
LocalCSE.AvailableExpression(Instruction i, Operator op, Operand[] ops, LocationOperand loc, Register t)
i
- the instruction which makes this expression availableop
- the operator of the expressionops
- the operandsloc
- location operand for memory (load/store) expressionst
- temporary register holding the result of the available
expressionMethod Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isLoadOrStore()
public boolean isLoad()
public boolean isStore()
private boolean isBoundsCheck()
private boolean isCommutative()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |