public final class FloatConstantOperand extends ConstantOperand
Operand
Modifier and Type | Field and Description |
---|---|
Offset |
offset
Offset in JTOC where this float constant lives (0 for constants
generated from constant folding).
|
float |
value
Value of this operand.
|
instruction
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public float value
public FloatConstantOperand(float v)
v
- valuepublic FloatConstantOperand(float v, Offset i)
v
- valuei
- offset in the JTOCpublic Operand copy()
Operand
this
.public TypeReference getType()
Operand
TypeReference
of the value represented by the operand.getType
in class Operand
TypeReference.Float
public boolean isFloat()
Operand
public boolean similar(Operand op)
Operand