decompiler  1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ghidra::PcodeEmitFd Class Reference

A p-code emitter for building PcodeOp objects. More...

#include <funcdata.hh>

Inheritance diagram for ghidra::PcodeEmitFd:
ghidra::PcodeEmit

Public Member Functions

void setFuncdata (Funcdata *f)
 Establish the container for this emitter.
 
- Public Member Functions inherited from ghidra::PcodeEmit
virtual ~PcodeEmit (void)
 Virtual destructor.
 
void decodeOp (const Address &addr, Decoder &decoder)
 Emit pcode directly from an <op> element. More...
 

Private Member Functions

virtual void dump (const Address &addr, OpCode opc, VarnodeData *outvar, VarnodeData *vars, int4 isize)
 The main pcode emit method. More...
 

Private Attributes

Funcdatafd
 The Funcdata container to emit to.
 

Detailed Description

A p-code emitter for building PcodeOp objects.

The emitter is attached to a specific Funcdata object. Any p-code generated (by FlowInfo typically) will be instantiated as PcodeOp and Varnode objects and placed in the Funcdata dead list.

Member Function Documentation

◆ dump()

void ghidra::PcodeEmitFd::dump ( const Address addr,
OpCode  opc,
VarnodeData outvar,
VarnodeData vars,
int4  isize 
)
privatevirtual

The main pcode emit method.

A single pcode instruction is returned to the application via this method. Particular applications override it to tailor how the operations are used.

Parameters
addris the Address of the machine instruction
opcis the opcode of the particular pcode instruction
outvarif not null is a pointer to data about the output varnode
varsis a pointer to an array of VarnodeData for each input varnode
isizeis the number of input varnodes

Implements ghidra::PcodeEmit.

References ghidra::PcodeOp::isCodeRef(), ghidra::VarnodeData::offset, ghidra::VarnodeData::size, ghidra::Funcdata::size, and ghidra::VarnodeData::space.


The documentation for this class was generated from the following files: