|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.ir.InstructionFormat org.jikesrvm.compilers.opt.ir.MIR_CompareExchange
public final class MIR_CompareExchange
The MIR_CompareExchange 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 | |
---|---|
MIR_CompareExchange()
|
Method Summary | |
---|---|
static boolean |
conforms(Instruction i)
InstructionFormat identification method for MIR_CompareExchange. |
static boolean |
conforms(Operator o)
InstructionFormat identification method for MIR_CompareExchange. |
static Instruction |
create(Operator o,
RegisterOperand OldValue,
MemoryOperand MemAddr,
RegisterOperand NewValue)
Create an instruction of the MIR_CompareExchange instruction format. |
static MemoryOperand |
getClearMemAddr(Instruction i)
Get the operand called MemAddr from the argument instruction clearing its instruction pointer. |
static RegisterOperand |
getClearNewValue(Instruction i)
Get the operand called NewValue from the argument instruction clearing its instruction pointer. |
static RegisterOperand |
getClearOldValue(Instruction i)
Get the operand called OldValue from the argument instruction clearing its instruction pointer. |
static MemoryOperand |
getMemAddr(Instruction i)
Get the operand called MemAddr from the argument instruction. |
static RegisterOperand |
getNewValue(Instruction i)
Get the operand called NewValue from the argument instruction. |
static RegisterOperand |
getOldValue(Instruction i)
Get the operand called OldValue from the argument instruction. |
static boolean |
hasMemAddr(Instruction i)
Does the argument instruction have a non-null operand named MemAddr? |
static boolean |
hasNewValue(Instruction i)
Does the argument instruction have a non-null operand named NewValue? |
static boolean |
hasOldValue(Instruction i)
Does the argument instruction have a non-null operand named OldValue? |
static int |
indexOfMemAddr(Instruction i)
Return the index of the operand called MemAddr in the argument instruction. |
static int |
indexOfNewValue(Instruction i)
Return the index of the operand called NewValue in the argument instruction. |
static int |
indexOfOldValue(Instruction i)
Return the index of the operand called OldValue in the argument instruction. |
static Instruction |
mutate(Instruction i,
Operator o,
RegisterOperand OldValue,
MemoryOperand MemAddr,
RegisterOperand NewValue)
Mutate the argument instruction into an instruction of the MIR_CompareExchange instruction format having the specified operator and operands. |
static void |
setMemAddr(Instruction i,
MemoryOperand MemAddr)
Set the operand called MemAddr in the argument instruction to the argument operand. |
static void |
setNewValue(Instruction i,
RegisterOperand NewValue)
Set the operand called NewValue in the argument instruction to the argument operand. |
static void |
setOldValue(Instruction i,
RegisterOperand OldValue)
Set the operand called OldValue 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 MIR_CompareExchange()
Method Detail |
---|
public static boolean conforms(Instruction i)
i
- an instruction
true
if the InstructionFormat of the argument
instruction is MIR_CompareExchange or false
if it is not.public static boolean conforms(Operator o)
o
- an instruction
true
if the InstructionFormat of the argument
operator is MIR_CompareExchange or false
if it is not.public static RegisterOperand getOldValue(Instruction i)
i
- the instruction to fetch the operand from
public static RegisterOperand getClearOldValue(Instruction i)
i
- the instruction to fetch the operand from
public static void setOldValue(Instruction i, RegisterOperand OldValue)
i
- the instruction in which to store the operandOldValue
- the operand to storepublic static int indexOfOldValue(Instruction i)
i
- the instruction to access.
public static boolean hasOldValue(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named OldValue or false
if it does not.public static MemoryOperand getMemAddr(Instruction i)
i
- the instruction to fetch the operand from
public static MemoryOperand getClearMemAddr(Instruction i)
i
- the instruction to fetch the operand from
public static void setMemAddr(Instruction i, MemoryOperand MemAddr)
i
- the instruction in which to store the operandMemAddr
- the operand to storepublic static int indexOfMemAddr(Instruction i)
i
- the instruction to access.
public static boolean hasMemAddr(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named MemAddr or false
if it does not.public static RegisterOperand getNewValue(Instruction i)
i
- the instruction to fetch the operand from
public static RegisterOperand getClearNewValue(Instruction i)
i
- the instruction to fetch the operand from
public static void setNewValue(Instruction i, RegisterOperand NewValue)
i
- the instruction in which to store the operandNewValue
- the operand to storepublic static int indexOfNewValue(Instruction i)
i
- the instruction to access.
public static boolean hasNewValue(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named NewValue or false
if it does not.public static Instruction create(Operator o, RegisterOperand OldValue, MemoryOperand MemAddr, RegisterOperand NewValue)
o
- the instruction's operatorOldValue
- the instruction's OldValue operandMemAddr
- the instruction's MemAddr operandNewValue
- the instruction's NewValue operand
public static Instruction mutate(Instruction i, Operator o, RegisterOperand OldValue, MemoryOperand MemAddr, RegisterOperand NewValue)
i
- the instruction to mutateo
- the instruction's operatorOldValue
- the instruction's OldValue operandMemAddr
- the instruction's MemAddr operandNewValue
- the instruction's NewValue operand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |