Package jminusminus

Class NHIRLoadLocal


class NHIRLoadLocal extends NHIRInstruction
HIR instruction representing a formal parameter.
  • Constructor Details

    • NHIRLoadLocal

      public NHIRLoadLocal(NBasicBlock block, int id, int local, String sType, String lType)
      Constructs an NHIRLoadLocal object.
      Parameters:
      block - enclosing block.
      id - identifier of the instruction.
      local - local variable index.
      sType - short type name of the instruction.
      lType - long type name of the instruction.
  • Method Details

    • toLir

      public NLIRInstruction toLir()
      Converts and returns a low-level representation (LIR) of this HIR instruction. Also adds the returned LIR instruction to the list of LIR instructions for the block containing this instruction, along with any other intermediate LIR instructions needed.
      Overrides:
      toLir in class NHIRInstruction
      Returns:
      the LIR instruction corresponding to this HIR instruction.
    • toString

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