Package jminusminus

Class NLIRReturn


class NLIRReturn extends NLIRInstruction
HIR instruction representing a JVM return instruction.
  • Constructor Details

    • NLIRReturn

      public NLIRReturn(NBasicBlock block, int id, int opcode, NPhysicalRegister result)
      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

      public void toSpim(PrintWriter out)
      Translates this LIR instruction into SPIM and writes it out to the specified output stream.
      Overrides:
      toSpim in class NLIRInstruction
      Parameters:
      out - output stream for SPIM code.
    • toString

      public String toString()
      Returns a string representation of this instruction.
      Overrides:
      toString in class NLIRInstruction
      Returns:
      a string representation of this instruction.