class NLIRReturn extends NLIRInstruction
Modifier and Type | Field and Description |
---|---|
int |
opcode
JVM opcode for the return instruction.
|
block, id, lirMnemonic, reads, write
Constructor and Description |
---|
NLIRReturn(NBasicBlock block,
int id,
int opcode,
NPhysicalRegister result)
Construct an NLIRReturn 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 NLIRReturn(NBasicBlock block, int id, int opcode, NPhysicalRegister result)
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the return instruction.result
- physical register storing return value, or null.public void toSpim(PrintWriter out)
NLIRInstruction
toSpim
in class NLIRInstruction
out
- output stream for SPIM code.public String toString()
NLIRInstruction
toString
in class NLIRInstruction