|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.InstructionFormat
org.jikesrvm.compilers.opt.ir.BranchProfileCarrier
public final class BranchProfileCarrier
InstructionFormats that have a BranchProfile (which is BranchProfileOperand)
| Field Summary | |
|---|---|
private static int[] |
_index
|
| Constructor Summary | |
|---|---|
BranchProfileCarrier()
|
|
| Method Summary | |
|---|---|
static boolean |
conforms(Instruction i)
Does the instruction belong to an instruction format that has an operand called BranchProfile? |
static boolean |
conforms(Operator o)
Does the operator belong to an instruction format that has an operand called BranchProfile? |
static BranchProfileOperand |
getBranchProfile(Instruction i)
Get the operand called BranchProfile from the argument instruction. |
static BranchProfileOperand |
getClearBranchProfile(Instruction i)
Get the operand called BranchProfile from the argument instruction clearing its instruction pointer. |
static boolean |
hasBranchProfile(Instruction i)
Does the argument instruction have a non-null operand named BranchProfile? |
static int |
indexOfBranchProfile(Instruction i)
Return the index of the operand called BranchProfile in the argument instruction. |
static void |
setBranchProfile(Instruction i,
BranchProfileOperand op)
Set the operand called BranchProfile in the argument instruction to the argument operand. |
| Methods inherited from class org.jikesrvm.compilers.opt.ir.InstructionFormat |
|---|
fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int[] _index
| Constructor Detail |
|---|
public BranchProfileCarrier()
| Method Detail |
|---|
public static boolean conforms(Instruction i)
i - the instruction to test
true if the instruction's instruction
format has an operand called BranchProfile and
false if it does not.public static boolean conforms(Operator o)
o - the operator to test
true if the instruction's instruction
format has an operand called BranchProfile and
false if it does not.public static BranchProfileOperand getBranchProfile(Instruction i)
i - the instruction to fetch the operand from
public static BranchProfileOperand getClearBranchProfile(Instruction i)
i - the instruction to fetch the operand from
public static void setBranchProfile(Instruction i,
BranchProfileOperand op)
i - the instruction in which to store the operandop - the operand to storepublic static int indexOfBranchProfile(Instruction i)
i - the instruction to access.
public static boolean hasBranchProfile(Instruction i)
i - the instruction to access.
true if the instruction has an non-null
operand named BranchProfile or false
if it does not.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||