decompiler 1.0.0
Public Member Functions | Public Attributes | List of all members
ghidra::ConsistencyChecker::OptimizeRecord Struct Reference

Description of how a temporary register is being used within a Constructor. More...

#include <slgh_compile.hh>

Public Member Functions

 OptimizeRecord (uintb offset, int4 size)
 Construct a record, initializing counts.
 
void copyFromExcludingSize (OptimizeRecord &that)
 
void update (int4 opIdx, int4 slotIdx, int4 secNum)
 
void updateRead (int4 i, int4 inslot, int4 secNum)
 
void updateWrite (int4 i, int4 secNum)
 
void updateExport ()
 
void updateCombine (OptimizeRecord &that)
 

Public Attributes

uintb offset
 Offset of the varnode address.
 
int4 size
 Size in bytes of the varnode or piece (immutable)
 
int4 writeop
 Index of the (last) p-code op writing to register (or -1)
 
int4 readop
 Index of the (last) p-code op reading the register (or -1)
 
int4 inslot
 Input slot of p-code op reading the register (or -1)
 
int4 writecount
 Number of times the register is written.
 
int4 readcount
 Number of times the register is read.
 
int4 writesection
 Section containing (last) p-code op writing to the register (or -2)
 
int4 readsection
 Section containing (last) p-code op reading the register (or -2)
 
int4 opttype
 0 = register read by a COPY, 1 = register written by a COPY (-1 otherwise)
 

Detailed Description

Description of how a temporary register is being used within a Constructor.

This counts reads and writes of the register. If the register is read only once, the particular p-code op and input slot reading it is recorded. If the register is written only once, the particular p-code op writing it is recorded.


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