class NLIRALoad extends NLIRInstruction
Modifier and Type | Field and Description |
---|---|
int |
opcode
Opcode of the JVM instruction.
|
block, id, lirMnemonic, reads, write
Constructor and Description |
---|
NLIRALoad(NBasicBlock block,
int id,
int opcode,
NLIRInstruction arrayRef,
NLIRInstruction index,
String sType,
String lType)
Construct an NLIRALoad instruction.
|
Modifier and Type | Method and Description |
---|---|
void |
toSpim(PrintWriter out)
Translate this LIR instruction into SPIM and write it out to the
specified output stream.
|
String |
toString()
Return a string representation of this instruction.
|
allocatePhysicalRegisters
public NLIRALoad(NBasicBlock block, int id, int opcode, NLIRInstruction arrayRef, NLIRInstruction index, String sType, String lType)
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the instruction.arrayRef
- LIR of the array reference.index
- LIR of the array index.sType
- type (short name) of the array.lType
- type (long name) of the array.public void toSpim(PrintWriter out)
NLIRInstruction
toSpim
in class NLIRInstruction
out
- output stream for SPIM code.public String toString()
NLIRInstruction
toString
in class NLIRInstruction