Enum Class CopyOpGen

java.lang.Object
java.lang.Enum<CopyOpGen>
ghidra.pcode.emu.jit.gen.op.CopyOpGen
All Implemented Interfaces:
IntExtUnOpGen<JitCopyOp>, OpGen<JitCopyOp>, UnOpGen<JitCopyOp>, Serializable, Comparable<CopyOpGen>, Constable

public enum CopyOpGen extends Enum<CopyOpGen> implements IntExtUnOpGen<JitCopyOp>
The generator for a copy.

This is identical to IntZExtOpGen, except that we expect (require?) the output and input operand to agree in size, and so we don't actually expect any extension. In the event that is not the case, it seems agreeable that zero extension is applied.

  • Enum Constant Details

    • GEN

      public static final CopyOpGen GEN
      The generator singleton
  • Method Details

    • values

      public static CopyOpGen[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CopyOpGen valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isSigned

      public boolean isSigned()
      Description copied from interface: UnOpGen
      Whether this operator is signed

      In many cases, the operator itself is not affected by the signedness of the operands; however, if size adjustments to the operands are needed, this can determine how those operands are extended.

      Specified by:
      isSigned in interface UnOpGen<JitCopyOp>
      Returns:
      true for signed, false if not