Package iota

Class NLirInc


class NLirInc extends NLirInstruction
Representation of an instruction for incrementing (or decrementing) a register by a constant value.
  • Field Details

    • N

      public int N
      Increment (or decrement) value.
  • Constructor Details

    • NLirInc

      public NLirInc(NBasicBlock block, int id, NRegister register, int N)
      Constructs an NLirInc object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      register - the register to increment (or decrement).
      N - increment (or decrement) value.
  • Method Details

    • toMarvin

      public void toMarvin()
      Converts this instruction to the corresponding Marvin instruction.
      Overrides:
      toMarvin in class NLirInstruction
    • toString

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