Package jminusminus

Class NLIRGoto


class NLIRGoto extends NLIRInstruction
LIR instruction representing an unconditional jump instruction in JVM.
  • Constructor Details

    • NLIRGoto

      public NLIRGoto(NBasicBlock block, int id, NBasicBlock destination)
      Constructs an NLIRGoto object.
      Parameters:
      block - enclosing block.
      id - identifier of the instruction.
      destination - the block to jump to.
  • 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.