Enum Class IntZExtOpGen

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

public enum IntZExtOpGen extends Enum<IntZExtOpGen> implements IntExtUnOpGen<JitIntZExtOp>
The generator for a int_zext.

This uses the unary operator generator and emits nothing extra. The unary generator template will emit code to load the input operand, this emits nothing, and then the template emits code to write the output operand, including the necessary type conversion. That type conversion performs the zero extension.

Note that this implementation is equivalent to CopyOpGen, except that differences in operand sizes are expected.

  • Enum Constant Details

    • GEN

      public static final IntZExtOpGen GEN
      The generator singleton
  • Method Details

    • values

      public static IntZExtOpGen[] 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 IntZExtOpGen 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<JitIntZExtOp>
      Returns:
      true for signed, false if not