Enum Class FloatAddOpGen

java.lang.Object
java.lang.Enum<FloatAddOpGen>
ghidra.pcode.emu.jit.gen.op.FloatAddOpGen
All Implemented Interfaces:
BinOpGen<JitFloatAddOp>, FloatOpBinOpGen<JitFloatAddOp>, OpGen<JitFloatAddOp>, Serializable, Comparable<FloatAddOpGen>, Constable

public enum FloatAddOpGen extends Enum<FloatAddOpGen> implements FloatOpBinOpGen<JitFloatAddOp>
The generator for a float_add.

This uses the binary operator generator and simply emits fadd or dadd depending on the type.

  • Enum Constant Details

    • GEN

      public static final FloatAddOpGen GEN
      The generator singleton
  • Method Details

    • values

      public static FloatAddOpGen[] 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 FloatAddOpGen 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
    • opForFloat

      public <N2 extends Emitter.Next, N1 extends Emitter.Ent<N2, Types.TFloat>, N0 extends Emitter.Ent<N1, Types.TFloat>> Emitter<Emitter.Ent<N2,Types.TFloat>> opForFloat(Emitter<N0> em)
      Description copied from interface: FloatOpBinOpGen
      Emit the JVM bytecode to perform the operator with float operands on the stack.
      Specified by:
      opForFloat in interface FloatOpBinOpGen<JitFloatAddOp>
      Type Parameters:
      N2 - the tail of the incoming stack
      N1 - the tail of the incoming stack including the right operand
      N0 - the incoming stack with the right and left operands on top
      Parameters:
      em - the emitter typed with the incoming stack
      Returns:
      the emitter typed with the resulting stack, i.e., the tail with the result pushed
    • opForDouble

      public <N2 extends Emitter.Next, N1 extends Emitter.Ent<N2, Types.TDouble>, N0 extends Emitter.Ent<N1, Types.TDouble>> Emitter<Emitter.Ent<N2,Types.TDouble>> opForDouble(Emitter<N0> em)
      Description copied from interface: FloatOpBinOpGen
      Emit the JVM bytecode to perform the operator with double operands on the stack.
      Specified by:
      opForDouble in interface FloatOpBinOpGen<JitFloatAddOp>
      Type Parameters:
      N2 - the tail of the incoming stack
      N1 - the tail of the incoming stack including the right operand
      N0 - the incoming stack with the right and left operands on top
      Parameters:
      em - the emitter typed with the incoming stack
      Returns:
      the emitter typed with the resulting stack, i.e., the tail with the result pushed