Package ghidra.pcode.emu.jit.gen.op
Interface FloatConvertUnOpGen<T extends JitUnOp>
- Type Parameters:
T- the class of p-code op node in the use-def graph
- All Known Implementing Classes:
FloatFloat2FloatOpGen,FloatInt2FloatOpGen,FloatTruncOpGen
An extension for float conversion operators
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.pcode.emu.jit.gen.op.OpGen
OpGen.DeadOpResult, OpGen.LiveOpResult, OpGen.OpResult -
Method Summary
Modifier and TypeMethodDescriptiondefault <THIS extends JitCompiledPassage,UT extends Types.BPrim<?>, UJT extends JitType.SimpleJitType<UT, UJT>, OT extends Types.BPrim<?>, OJT extends JitType.SimpleJitType<OT, OJT>>
Emitter<Emitter.Bot> gen(Emitter<Emitter.Bot> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, T op, UJT ut, OJT ot, Function<? super Emitter<Emitter.Ent<Emitter.Bot, UT>>, Emitter<Emitter.Ent<Emitter.Bot, OT>>> opcode, Scope scope) An implementation based on a given bytecode op
-
Method Details
-
gen
default <THIS extends JitCompiledPassage,UT extends Types.BPrim<?>, Emitter<Emitter.Bot> genUJT extends JitType.SimpleJitType<UT, UJT>, OT extends Types.BPrim<?>, OJT extends JitType.SimpleJitType<OT, OJT>> (Emitter<Emitter.Bot> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, T op, UJT ut, OJT ot, Function<? super Emitter<Emitter.Ent<Emitter.Bot, UT>>, Emitter<Emitter.Ent<Emitter.Bot, OT>>> opcode, Scope scope) An implementation based on a given bytecode op- Type Parameters:
THIS- the type of the generated passageUT- the JVM type of the input operandUJT- the p-code type of the input operandOT- the JVM type of the output operandOJT- the p-code type of the output operand- Parameters:
em- the emitter typed with the incoming stacklocalThis- a handle to the local holding thethisreferencegen- the code generatorop- the p-code oput- the p-code type of the input operandot- the p-code type of the output operandopcode- a method reference, e.g., toOp.f2d(Emitter)for the conversionscope- a scope for generating temporary local storage- Returns:
- the emitter typed with the incoming stack
-