public final class BranchProfileOperand extends Operand
Operand
Modifier and Type | Field and Description |
---|---|
static float |
ALWAYS |
static float |
LIKELY |
static float |
NEVER |
float |
takenProbability |
static float |
UNLIKELY |
instruction
Constructor and Description |
---|
BranchProfileOperand() |
BranchProfileOperand(float takenProbability) |
Modifier and Type | Method and Description |
---|---|
static BranchProfileOperand |
always() |
Operand |
copy()
Returns a copy of this branch operand.
|
BranchProfileOperand |
flip()
Flip the probability (p = 1 - p)
|
static BranchProfileOperand |
likely() |
static BranchProfileOperand |
never() |
boolean |
similar(Operand op)
Are two operands semantically equivalent?
|
String |
toString()
Returns the string representation of this operand.
|
static BranchProfileOperand |
unlikely() |
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, getType, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
public float takenProbability
public static final float ALWAYS
public static final float LIKELY
public static final float UNLIKELY
public static final float NEVER
public BranchProfileOperand(float takenProbability)
public BranchProfileOperand()
public static BranchProfileOperand always()
public static BranchProfileOperand likely()
public static BranchProfileOperand unlikely()
public static BranchProfileOperand never()
public BranchProfileOperand flip()
public boolean similar(Operand op)
Operand