Package iota

Class NLirCopy


class NLirCopy extends NLirInstruction
Representation of an instruction for copying one register into another register.
  • Constructor Details

    • NLirCopy

      public NLirCopy(NBasicBlock block, int id, NRegister to, NRegister from)
      Constructs an NLirCopy object.
      Parameters:
      block - enclosing block.
      id - instruction id.
      to - register (virtual or physical) to copy to.
      from - register (virtual or physical) to copy 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.