Ghidra Decompiler Analysis Engine
|
A base class for operations that access volatile memory. More...
#include <userop.hh>
Static Protected Member Functions | |
static string | appendSize (const string &base, int4 size) |
Append a suffix to a string encoding a specific size. More... | |
Additional Inherited Members | |
Public Member Functions inherited from UserPcodeOp | |
virtual string | getOperatorName (const PcodeOp *op) const |
Get the symbol representing this operation in decompiled code. More... | |
virtual void | restoreXml (const Element *el)=0 |
Restore the detailed description from an XML stream. More... | |
Protected Attributes inherited from UserPcodeOp | |
string | name |
Low-level name of p-code operator. | |
int4 | useropindex |
Index passed in the CALLOTHER op. | |
Architecture * | glb |
Architecture owning the user defined op. | |
A base class for operations that access volatile memory.
The decompiler models volatile memory by converting any direct read or write of the memory to a function that accesses the memory. This class and its derived classes model such functions. Within the p-code control-flow, dedicated user defined ops serve as a placeholder for the (possibly unknown) effects of modifying/accessing the memory and prevent accidental constant propagation.
|
staticprotected |
Append a suffix to a string encoding a specific size.
This allows a single user defined operator to have multiple symbol names based on the size of its operands in context.
base | is the string to append the suffix to |
size | is the size to encode expressed as the number of bytes |