Package jminusminus
Class NLIRReturn
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRReturn
HIR instruction representing a JVM return instruction.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write -
Constructor Summary
ConstructorsConstructorDescriptionNLIRReturn(NBasicBlock block, int id, int opcode, NPhysicalRegister result) Constructs an NLIRReturn object. -
Method Summary
Modifier and TypeMethodDescriptionvoidtoSpim(PrintWriter out) Translates this LIR instruction into SPIM and writes it out to the specified output stream.toString()Returns a string representation of this instruction.Methods inherited from class jminusminus.NLIRInstruction
allocatePhysicalRegisters
-
Constructor Details
-
NLIRReturn
Constructs an NLIRReturn object.- Parameters:
block- enclosing block.id- identifier of the instruction.opcode- JVM opcode for the return instruction.result- physical register storing return value, or null.
-
-
Method Details
-
toSpim
Translates this LIR instruction into SPIM and writes it out to the specified output stream.- Overrides:
toSpimin classNLIRInstruction- Parameters:
out- output stream for SPIM code.
-
toString
Returns a string representation of this instruction.- Overrides:
toStringin classNLIRInstruction- Returns:
- a string representation of this instruction.
-