Package iota

Class NLirArithmetic


class NLirArithmetic extends NLirInstruction
Representation of an arithmetic instruction.
  • Constructor Details

    • NLirArithmetic

      public NLirArithmetic(NBasicBlock block, int id, String mnemonic, NLirInstruction lhs, NLirInstruction rhs)
      Constructs an NLirArithmetic object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      mnemonic - instruction mnemonic.
      lhs - lhs instruction.
      rhs - rhs instruction.
  • 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.