Package iota

Class NLirLoad


class NLirLoad extends NLirInstruction
Representation of a load (from memory to register) instruction.
  • Field Details

    • N

      public int N
      Offset from the base memory address to load from.
  • Constructor Details

    • NLirLoad

      public NLirLoad(NBasicBlock block, int id, String mnemonic, NRegister to, NRegister from, int N)
      Constructs an NLirLoad object.
      Parameters:
      block - enclosing block.
      id - instruction id.
      mnemonic - instruction mnemonic.
      to - register (virtual or physical) to store into.
      from - base memory address.
      N - offset from base memory address to load from.
  • 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.