|
|||||||||||
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.InstrumentedCounter
public final class InstrumentedCounter
The InstrumentedCounter InstructionFormat class.
The header comment for Instruction
contains
an explanation of the role of InstructionFormats in the
opt compiler's IR.
Field Summary |
---|
Constructor Summary | |
---|---|
InstrumentedCounter()
|
Method Summary | |
---|---|
static boolean |
conforms(Instruction i)
InstructionFormat identification method for InstrumentedCounter. |
static boolean |
conforms(Operator o)
InstructionFormat identification method for InstrumentedCounter. |
static Instruction |
create(Operator o,
IntConstantOperand Data,
IntConstantOperand Index,
Operand Increment)
Create an instruction of the InstrumentedCounter instruction format. |
static IntConstantOperand |
getClearData(Instruction i)
Get the operand called Data from the argument instruction clearing its instruction pointer. |
static Operand |
getClearIncrement(Instruction i)
Get the operand called Increment from the argument instruction clearing its instruction pointer. |
static IntConstantOperand |
getClearIndex(Instruction i)
Get the operand called Index from the argument instruction clearing its instruction pointer. |
static IntConstantOperand |
getData(Instruction i)
Get the operand called Data from the argument instruction. |
static Operand |
getIncrement(Instruction i)
Get the operand called Increment from the argument instruction. |
static IntConstantOperand |
getIndex(Instruction i)
Get the operand called Index from the argument instruction. |
static boolean |
hasData(Instruction i)
Does the argument instruction have a non-null operand named Data? |
static boolean |
hasIncrement(Instruction i)
Does the argument instruction have a non-null operand named Increment? |
static boolean |
hasIndex(Instruction i)
Does the argument instruction have a non-null operand named Index? |
static int |
indexOfData(Instruction i)
Return the index of the operand called Data in the argument instruction. |
static int |
indexOfIncrement(Instruction i)
Return the index of the operand called Increment in the argument instruction. |
static int |
indexOfIndex(Instruction i)
Return the index of the operand called Index in the argument instruction. |
static Instruction |
mutate(Instruction i,
Operator o,
IntConstantOperand Data,
IntConstantOperand Index,
Operand Increment)
Mutate the argument instruction into an instruction of the InstrumentedCounter instruction format having the specified operator and operands. |
static void |
setData(Instruction i,
IntConstantOperand Data)
Set the operand called Data in the argument instruction to the argument operand. |
static void |
setIncrement(Instruction i,
Operand Increment)
Set the operand called Increment in the argument instruction to the argument operand. |
static void |
setIndex(Instruction i,
IntConstantOperand Index)
Set the operand called Index 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 |
Constructor Detail |
---|
public InstrumentedCounter()
Method Detail |
---|
public static boolean conforms(Instruction i)
i
- an instruction
true
if the InstructionFormat of the argument
instruction is InstrumentedCounter or false
if it is not.public static boolean conforms(Operator o)
o
- an instruction
true
if the InstructionFormat of the argument
operator is InstrumentedCounter or false
if it is not.public static IntConstantOperand getData(Instruction i)
i
- the instruction to fetch the operand from
public static IntConstantOperand getClearData(Instruction i)
i
- the instruction to fetch the operand from
public static void setData(Instruction i, IntConstantOperand Data)
i
- the instruction in which to store the operandData
- the operand to storepublic static int indexOfData(Instruction i)
i
- the instruction to access.
public static boolean hasData(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named Data or false
if it does not.public static IntConstantOperand getIndex(Instruction i)
i
- the instruction to fetch the operand from
public static IntConstantOperand getClearIndex(Instruction i)
i
- the instruction to fetch the operand from
public static void setIndex(Instruction i, IntConstantOperand Index)
i
- the instruction in which to store the operandIndex
- the operand to storepublic static int indexOfIndex(Instruction i)
i
- the instruction to access.
public static boolean hasIndex(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named Index or false
if it does not.public static Operand getIncrement(Instruction i)
i
- the instruction to fetch the operand from
public static Operand getClearIncrement(Instruction i)
i
- the instruction to fetch the operand from
public static void setIncrement(Instruction i, Operand Increment)
i
- the instruction in which to store the operandIncrement
- the operand to storepublic static int indexOfIncrement(Instruction i)
i
- the instruction to access.
public static boolean hasIncrement(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named Increment or false
if it does not.public static Instruction create(Operator o, IntConstantOperand Data, IntConstantOperand Index, Operand Increment)
o
- the instruction's operatorData
- the instruction's Data operandIndex
- the instruction's Index operandIncrement
- the instruction's Increment operand
public static Instruction mutate(Instruction i, Operator o, IntConstantOperand Data, IntConstantOperand Index, Operand Increment)
i
- the instruction to mutateo
- the instruction's operatorData
- the instruction's Data operandIndex
- the instruction's Index operandIncrement
- the instruction's Increment operand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |