|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.operand.Operand
org.jikesrvm.compilers.opt.ir.operand.ConstantOperand
org.jikesrvm.compilers.opt.ir.operand.FloatConstantOperand
public final class FloatConstantOperand
Represents a constant float operand.
Operand| Field Summary | |
|---|---|
Offset |
offset
Offset in JTOC where this float constant lives (0 for constants generated from constant folding). |
float |
value
Value of this operand. |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
FloatConstantOperand(float v)
Constructs a new float constant operand with the specified value. |
|
FloatConstantOperand(float v,
Offset i)
Constructs a new float constant operand with the specified value and JTOC offset. |
|
| Method Summary | |
|---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to this. |
TypeReference |
getType()
Return the TypeReference of the value represented by the operand. |
boolean |
isFloat()
Does the operand represent a value of the float data type? |
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
String |
toString()
Returns the string representation of this operand. |
| Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float value
public Offset offset
| Constructor Detail |
|---|
public FloatConstantOperand(float v)
v - value
public FloatConstantOperand(float v,
Offset i)
v - valuei - offset in the jtoc| Method Detail |
|---|
public Operand copy()
this.
copy in class Operandthispublic TypeReference getType()
TypeReference of the value represented by the operand.
getType in class Operandpublic boolean isFloat()
isFloat in class Operandtruepublic boolean similar(Operand op)
similar in class Operandop - other operand
true if this and op
are semantically equivalent or false
if they are not.public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||