Enum Class IntSExtOpGen

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

public enum IntSExtOpGen extends Enum<IntSExtOpGen> implements IntExtUnOpGen<JitIntSExtOp>
The generator for a int_sext.

This works exactly the same as IntZExtOpGen except that the conversions use sign extension.

  • Enum Constant Details

    • GEN

      public static final IntSExtOpGen GEN
      The generator singleton
  • Method Details

    • values

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