org.jikesrvm.compilers.opt.ir
Class GetField

public final class GetField
extends InstructionFormat
The GetField InstructionFormat class. The header comment for Instruction contains an explanation of the role of InstructionFormats in the opt compiler's IR.
SinceNot specified.
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Fields inherited from org.jikesrvm.compilers.opt.irInstructionFormat
Constructor Summary
GetField()
No description provided.
Method Summary
static boolean conforms( Instruction i )
InstructionFormat identification method for GetField.
static boolean conforms( Operator o )
InstructionFormat identification method for GetField.
static Instruction create( Operator o, RegisterOperand Result, Operand Ref, Operand Offset, LocationOperand Location, Operand Guard )
Create an instruction of the GetField instruction format.
static Operand getClearGuard( Instruction i )
Get the operand called Guard from the argument instruction clearing its instruction pointer.
static LocationOperand getClearLocation( Instruction i )
Get the operand called Location from the argument instruction clearing its instruction pointer.
static Operand getClearOffset( Instruction i )
Get the operand called Offset from the argument instruction clearing its instruction pointer.
static Operand getClearRef( Instruction i )
Get the operand called Ref from the argument instruction clearing its instruction pointer.
static RegisterOperand getClearResult( Instruction i )
Get the operand called Result from the argument instruction clearing its instruction pointer.
static Operand getGuard( Instruction i )
Get the operand called Guard from the argument instruction.
static LocationOperand getLocation( Instruction i )
Get the operand called Location from the argument instruction.
static Operand getOffset( Instruction i )
Get the operand called Offset from the argument instruction.
static Operand getRef( Instruction i )
Get the operand called Ref from the argument instruction.
static RegisterOperand getResult( Instruction i )
Get the operand called Result from the argument instruction.
static boolean hasGuard( Instruction i )
Does the argument instruction have a non-null operand named Guard?
static boolean hasLocation( Instruction i )
Does the argument instruction have a non-null operand named Location?
static boolean hasOffset( Instruction i )
Does the argument instruction have a non-null operand named Offset?
static boolean hasRef( Instruction i )
Does the argument instruction have a non-null operand named Ref?
static boolean hasResult( Instruction i )
Does the argument instruction have a non-null operand named Result?
static int indexOfGuard( Instruction i )
Return the index of the operand called Guard in the argument instruction.
static int indexOfLocation( Instruction i )
Return the index of the operand called Location in the argument instruction.
static int indexOfOffset( Instruction i )
Return the index of the operand called Offset in the argument instruction.
static int indexOfRef( Instruction i )
Return the index of the operand called Ref in the argument instruction.
static int indexOfResult( Instruction i )
Return the index of the operand called Result in the argument instruction.
static Instruction mutate( Instruction i, Operator o, RegisterOperand Result, Operand Ref, Operand Offset, LocationOperand Location, Operand Guard )
Mutate the argument instruction into an instruction of the GetField instruction format having the specified operator and operands.
static void setGuard( Instruction i, Operand Guard )
Set the operand called Guard in the argument instruction to the argument operand.
static void setLocation( Instruction i, LocationOperand Location )
Set the operand called Location in the argument instruction to the argument operand.
static void setOffset( Instruction i, Operand Offset )
Set the operand called Offset in the argument instruction to the argument operand.
static void setRef( Instruction i, Operand Ref )
Set the operand called Ref in the argument instruction to the argument operand.
static void setResult( Instruction i, RegisterOperand Result )
Set the operand called Result in the argument instruction to the argument operand.
Methods inherited from org.jikesrvm.compilers.opt.irInstructionFormat
GetField
public GetField ( )
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
conforms
public static boolean conforms ( Instruction i )
InstructionFormat identification method for GetField.
Parameters
TypeNameDescription
Instruction i an instruction
Wiki javadoc Use textile entry format.
Add your comments here.
conforms
public static boolean conforms ( Operator o )
InstructionFormat identification method for GetField.
Parameters
TypeNameDescription
Operator o an instruction
Wiki javadoc Use textile entry format.
Add your comments here.
create
public static Instruction create ( Operator o, RegisterOperand Result, Operand Ref, Operand Offset, LocationOperand Location, Operand Guard )
Create an instruction of the GetField instruction format.
Parameters
TypeNameDescription
Operator o the instruction's operator
RegisterOperand Result the instruction's Result operand
Operand Ref the instruction's Ref operand
Operand Offset the instruction's Offset operand
LocationOperand Location the instruction's Location operand
Operand Guard the instruction's Guard operand
Wiki javadoc Use textile entry format.
Add your comments here.
getClearGuard
public static Operand getClearGuard ( Instruction i )
Get the operand called Guard from the argument instruction clearing its instruction pointer. The returned operand will not point to any containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getClearLocation
public static LocationOperand getClearLocation ( Instruction i )
Get the operand called Location from the argument instruction clearing its instruction pointer. The returned operand will not point to any containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getClearOffset
public static Operand getClearOffset ( Instruction i )
Get the operand called Offset from the argument instruction clearing its instruction pointer. The returned operand will not point to any containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getClearRef
public static Operand getClearRef ( Instruction i )
Get the operand called Ref from the argument instruction clearing its instruction pointer. The returned operand will not point to any containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getClearResult
public static RegisterOperand getClearResult ( Instruction i )
Get the operand called Result from the argument instruction clearing its instruction pointer. The returned operand will not point to any containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getGuard
public static Operand getGuard ( Instruction i )
Get the operand called Guard from the argument instruction. Note that the returned operand will still point to its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getLocation
public static LocationOperand getLocation ( Instruction i )
Get the operand called Location from the argument instruction. Note that the returned operand will still point to its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getOffset
public static Operand getOffset ( Instruction i )
Get the operand called Offset from the argument instruction. Note that the returned operand will still point to its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getRef
public static Operand getRef ( Instruction i )
Get the operand called Ref from the argument instruction. Note that the returned operand will still point to its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
getResult
public static RegisterOperand getResult ( Instruction i )
Get the operand called Result from the argument instruction. Note that the returned operand will still point to its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction to fetch the operand from
Wiki javadoc Use textile entry format.
Add your comments here.
hasGuard
public static boolean hasGuard ( Instruction i )
Does the argument instruction have a non-null operand named Guard?
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
hasLocation
public static boolean hasLocation ( Instruction i )
Does the argument instruction have a non-null operand named Location?
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
hasOffset
public static boolean hasOffset ( Instruction i )
Does the argument instruction have a non-null operand named Offset?
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
hasRef
public static boolean hasRef ( Instruction i )
Does the argument instruction have a non-null operand named Ref?
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
hasResult
public static boolean hasResult ( Instruction i )
Does the argument instruction have a non-null operand named Result?
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
indexOfGuard
public static int indexOfGuard ( Instruction i )
Return the index of the operand called Guard in the argument instruction.
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
indexOfLocation
public static int indexOfLocation ( Instruction i )
Return the index of the operand called Location in the argument instruction.
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
indexOfOffset
public static int indexOfOffset ( Instruction i )
Return the index of the operand called Offset in the argument instruction.
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
indexOfRef
public static int indexOfRef ( Instruction i )
Return the index of the operand called Ref in the argument instruction.
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
indexOfResult
public static int indexOfResult ( Instruction i )
Return the index of the operand called Result in the argument instruction.
Parameters
TypeNameDescription
Instruction i the instruction to access.
Wiki javadoc Use textile entry format.
Add your comments here.
mutate
public static Instruction mutate ( Instruction i, Operator o, RegisterOperand Result, Operand Ref, Operand Offset, LocationOperand Location, Operand Guard )
Mutate the argument instruction into an instruction of the GetField instruction format having the specified operator and operands.
Parameters
TypeNameDescription
Instruction i the instruction to mutate
Operator o the instruction's operator
RegisterOperand Result the instruction's Result operand
Operand Ref the instruction's Ref operand
Operand Offset the instruction's Offset operand
LocationOperand Location the instruction's Location operand
Operand Guard the instruction's Guard operand
Wiki javadoc Use textile entry format.
Add your comments here.
setGuard
public static void setGuard ( Instruction i, Operand Guard )
Set the operand called Guard in the argument instruction to the argument operand. The operand will now point to the argument instruction as its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction in which to store the operand
Operand Guard the operand to store
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setLocation
public static void setLocation ( Instruction i, LocationOperand Location )
Set the operand called Location in the argument instruction to the argument operand. The operand will now point to the argument instruction as its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction in which to store the operand
LocationOperand Location the operand to store
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setOffset
public static void setOffset ( Instruction i, Operand Offset )
Set the operand called Offset in the argument instruction to the argument operand. The operand will now point to the argument instruction as its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction in which to store the operand
Operand Offset the operand to store
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setRef
public static void setRef ( Instruction i, Operand Ref )
Set the operand called Ref in the argument instruction to the argument operand. The operand will now point to the argument instruction as its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction in which to store the operand
Operand Ref the operand to store
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setResult
public static void setResult ( Instruction i, RegisterOperand Result )
Set the operand called Result in the argument instruction to the argument operand. The operand will now point to the argument instruction as its containing instruction.
Parameters
TypeNameDescription
Instruction i the instruction in which to store the operand
RegisterOperand Result the operand to store
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.