Package iota

Class NHirArithmetic


class NHirArithmetic extends NHirInstruction
Representation of an arithmetic instruction.
  • Field Details

    • lhs

      public int lhs
      Lhs instruction id.
    • rhs

      public int rhs
      Rhs instruction id.
  • Constructor Details

    • NHirArithmetic

      public NHirArithmetic(NBasicBlock block, int id, int opcode, int lhs, int rhs)
      Constructs an NHirArithmetic object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      opcode - instruction opcode.
      lhs - lhs instruction id.
      rhs - rhs instruction id.
  • Method Details

    • toLir

      public NLirInstruction toLir()
      Converts and returns a low-level representation (LIR) of this instruction.
      Specified by:
      toLir in class NHirInstruction
      Returns:
      the LIR instruction corresponding to this instruction.
    • toString

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