IDA C++ SDK 9.2
Loading...
Searching...
No Matches
regvar_t Struct Reference

A register variable allows the user to rename a general processor register to a meaningful name. More...

#include <frame.hpp>

Inheritance diagram for regvar_t:
range_t

Public Member Functions

 regvar_t ()
 regvar_t (const regvar_t &r)
 ~regvar_t ()
regvar_toperator= (const regvar_t &r)
void swap (regvar_t &r)
 DECLARE_COMPARISONS (regvar_t)
Public Member Functions inherited from range_t
 range_t (ea_t ea1=0, ea_t ea2=0)
 DECLARE_COMPARISONS (range_t)
 Compare two range_t instances, based on the start_ea.
bool contains (ea_t ea) const
 Is 'ea' in the address range?
bool contains (const range_t &r) const
 Is every ea in 'r' also in this range_t?
bool overlaps (const range_t &r) const
 Is there an ea in 'r' that is also in this range_t?
void clear ()
 Set start_ea, end_ea to 0.
bool empty () const
 Is the size of the range_t <= 0?
asize_t size () const
 Get end_ea - start_ea.
void intersect (const range_t &r)
 Assign the range_t to the intersection between the range_t and 'r'.
void extend (ea_t ea)
 Ensure that the range_t includes 'ea'.
size_t print (char *buf, size_t bufsize) const
 Print the range_t.

Public Attributes

char * canon = nullptr
 canonical register name (case-insensitive)
char * user = nullptr
 user-defined register name
char * cmt = nullptr
 comment to appear near definition
Public Attributes inherited from range_t
ea_t start_ea
 start_ea included
ea_t end_ea
 end_ea excluded

Detailed Description

A register variable allows the user to rename a general processor register to a meaningful name.

IDA doesn't check whether the target assembler supports the register renaming. All register definitions will appear at the beginning of the function.

Constructor & Destructor Documentation

◆ regvar_t() [1/2]

regvar_t::regvar_t ( )
inline

◆ regvar_t() [2/2]

regvar_t::regvar_t ( const regvar_t & r)
inline

◆ ~regvar_t()

regvar_t::~regvar_t ( )
inline

Member Function Documentation

◆ operator=()

regvar_t & regvar_t::operator= ( const regvar_t & r)
inline

◆ swap()

void regvar_t::swap ( regvar_t & r)
inline

◆ DECLARE_COMPARISONS()

regvar_t::DECLARE_COMPARISONS ( regvar_t )

Member Data Documentation

◆ canon

char* regvar_t::canon = nullptr

canonical register name (case-insensitive)

◆ user

char* regvar_t::user = nullptr

user-defined register name

◆ cmt

char* regvar_t::cmt = nullptr

comment to appear near definition


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