|
|||||||||||
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.OsrBarrier
public final class OsrBarrier
The OsrBarrier 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 | |
---|---|
OsrBarrier()
|
Method Summary | |
---|---|
static boolean |
conforms(Instruction i)
InstructionFormat identification method for OsrBarrier. |
static boolean |
conforms(Operator o)
InstructionFormat identification method for OsrBarrier. |
static Instruction |
create(Operator o,
OsrTypeInfoOperand TypeInfo,
int numVarOps)
Create an instruction of the OsrBarrier instruction format. |
static Operand |
getClearElement(Instruction i,
int k)
Get the k'th operand called Element from the argument instruction clearing its instruction pointer. |
static OsrTypeInfoOperand |
getClearTypeInfo(Instruction i)
Get the operand called TypeInfo from the argument instruction clearing its instruction pointer. |
static Operand |
getElement(Instruction i,
int k)
Get the k'th operand called Element from the argument instruction. |
static int |
getNumberOfElements(Instruction i)
How many variable-length operands called Elements does the argument instruction have? |
static OsrTypeInfoOperand |
getTypeInfo(Instruction i)
Get the operand called TypeInfo from the argument instruction. |
static boolean |
hasElement(Instruction i,
int k)
Does the argument instruction have a non-null k'th operand named Element? |
static boolean |
hasElements(Instruction i)
Does the argument instruction have any operands named Element? |
static boolean |
hasTypeInfo(Instruction i)
Does the argument instruction have a non-null operand named TypeInfo? |
static int |
indexOfElement(Instruction i,
int k)
Return the index of the k'th operand called Element in the argument instruction. |
static int |
indexOfElements(Instruction i)
Return the index of the first operand called Element in the argument instruction. |
static int |
indexOfTypeInfo(Instruction i)
Return the index of the operand called TypeInfo in the argument instruction. |
static Instruction |
mutate(Instruction i,
Operator o,
OsrTypeInfoOperand TypeInfo,
int numVarOps)
Mutate the argument instruction into an instruction of the OsrBarrier instruction format having the specified operator and operands. |
static void |
resizeNumberOfElements(Instruction i,
int numVarOps)
Change the number of Elements that may be stored in the argument instruction to numVarOps. |
static void |
setElement(Instruction i,
int k,
Operand o)
Set the k'th operand called Element in the argument instruction to the argument operand. |
static void |
setTypeInfo(Instruction i,
OsrTypeInfoOperand TypeInfo)
Set the operand called TypeInfo 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 OsrBarrier()
Method Detail |
---|
public static boolean conforms(Instruction i)
i
- an instruction
true
if the InstructionFormat of the argument
instruction is OsrBarrier or false
if it is not.public static boolean conforms(Operator o)
o
- an instruction
true
if the InstructionFormat of the argument
operator is OsrBarrier or false
if it is not.public static OsrTypeInfoOperand getTypeInfo(Instruction i)
i
- the instruction to fetch the operand from
public static OsrTypeInfoOperand getClearTypeInfo(Instruction i)
i
- the instruction to fetch the operand from
public static void setTypeInfo(Instruction i, OsrTypeInfoOperand TypeInfo)
i
- the instruction in which to store the operandTypeInfo
- the operand to storepublic static int indexOfTypeInfo(Instruction i)
i
- the instruction to access.
public static boolean hasTypeInfo(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named TypeInfo or false
if it does not.public static Operand getElement(Instruction i, int k)
i
- the instruction to fetch the operand fromk
- the index of the operand
public static Operand getClearElement(Instruction i, int k)
i
- the instruction to fetch the operand fromk
- the index of the operand
public static void setElement(Instruction i, int k, Operand o)
i
- the instruction in which to store the operandk
- the index of the operando
- the operand to storepublic static int indexOfElement(Instruction i, int k)
i
- the instruction to access.k
- the index of the operand.
public static boolean hasElement(Instruction i, int k)
i
- the instruction to access.k
- the index of the operand.
true
if the instruction has an non-null
k'th operand named Element or false
if it does not.public static int indexOfElements(Instruction i)
i
- the instruction to access.
public static boolean hasElements(Instruction i)
i
- the instruction to access.
true
if the instruction has operands
named Element or false
if it does not.public static int getNumberOfElements(Instruction i)
i
- the instruction to access
public static void resizeNumberOfElements(Instruction i, int numVarOps)
i
- the instruction to accessnumVarOps
- the new number of variable operands called Elements
that may be stored in the instructionpublic static Instruction create(Operator o, OsrTypeInfoOperand TypeInfo, int numVarOps)
o
- the instruction's operatorTypeInfo
- the instruction's TypeInfo operandnumVarOps
- the number of variable length operands that
will be stored in the insruction.
public static Instruction mutate(Instruction i, Operator o, OsrTypeInfoOperand TypeInfo, int numVarOps)
i
- the instruction to mutateo
- the instruction's operatorTypeInfo
- the instruction's TypeInfo operandnumVarOps
- the number of variable length operands that
will be stored in the insruction.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |