Package iota

Class NHirIConst


class NHirIConst extends NHirInstruction
Representation of an instruction for loading an integer.
  • Field Details

    • N

      public int N
      The integer.
  • Constructor Details

    • NHirIConst

      public NHirIConst(NBasicBlock block, int id, int N)
      Constructs an NHirIConst object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      N - the integer.
  • 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.