argpart_t Struct Reference
Subsection of an argument location. More...
#include <typeinf.hpp>
Inherits argloc_t.
Public Member Functions | |
argpart_t (const argloc_t &a) | |
Constructor. | |
argpart_t (void) | |
Constructor. | |
argpart_t & | copy_from (const argloc_t &a) |
bool | bad_offset (void) const |
Does this argpart have a valid offset? | |
bool | bad_size (void) const |
Does this argpart have a valid size? | |
bool | operator< (const argpart_t &r) const |
Compare two argparts, based on their offset. | |
void | swap (argpart_t &r) |
Assign this = r and r = this. | |
![]() | |
argloc_t (void) | |
Constructor. | |
argloc_t (const argloc_t &r) | |
Constructor. | |
~argloc_t (void) | |
Destructor. | |
argloc_t & | operator= (const argloc_t &r) |
Constructor. | |
void | swap (argloc_t &r) |
Assign this == r and r == this. | |
const char * | dstr (void) const |
argloc_type_t | atype (void) const |
Get type (Argument location types) | |
bool | is_reg1 (void) const |
See ALOC_REG1. | |
bool | is_reg2 (void) const |
See ALOC_REG2. | |
bool | is_reg (void) const |
is_reg1() || is_reg2() | |
bool | is_rrel (void) const |
See ALOC_RREL. | |
bool | is_ea (void) const |
See ALOC_STATIC. | |
bool | is_stkoff (void) const |
See ALOC_STACK. | |
bool | is_scattered (void) const |
See ALOC_DIST. | |
bool | has_reg () const |
TRUE if argloc has a register part. | |
bool | has_stkoff () const |
TRUE if argloc has a stack part. | |
bool | is_mixed_scattered () const |
mixed scattered: consists of register and stack parts | |
bool | in_stack () const |
TRUE if argloc is in stack entirely. | |
bool | is_fragmented (void) const |
is_scattered() || is_reg2() | |
bool | is_custom (void) const |
See ALOC_CUSTOM. | |
bool | is_badloc (void) const |
See ALOC_NONE. | |
int | reg1 (void) const |
Get the register info. More... | |
int | regoff (void) const |
Get offset from the beginning of the register in bytes. More... | |
int | reg2 (void) const |
Get info for the second register. More... | |
uint32 | get_reginfo (void) const |
Get all register info. More... | |
sval_t | stkoff (void) const |
Get the stack offset. More... | |
ea_t | get_ea (void) const |
Get the global address. More... | |
scattered_aloc_t & | scattered (void) |
Get scattered argument info. More... | |
const scattered_aloc_t & | scattered (void) const |
Get scattered argument info. More... | |
rrel_t & | get_rrel (void) |
Get register-relative info. More... | |
const rrel_t & | get_rrel (void) const |
Get register-relative info. More... | |
void * | get_custom (void) const |
Get custom argloc info. More... | |
biggest_t | get_biggest (void) const |
Get largest element in internal union. | |
void | _set_badloc (void) |
Use set_badloc() | |
void | _set_reg1 (int reg, int off=0) |
Use set_reg1() | |
void | _set_reg2 (int _reg1, int _reg2) |
Use set_reg2() | |
void | _set_stkoff (sval_t off) |
Use set_stkoff() | |
void | _set_ea (ea_t _ea) |
Use set_ea. | |
bool | _consume_rrel (rrel_t *p) |
Use consume_rrel() | |
bool | _consume_scattered (scattered_aloc_t *p) |
Use consume_scattered() | |
void | _set_custom (argloc_type_t ct, void *pdata) |
Set custom argument location (careful - this function does not clean up!) | |
void | _set_biggest (argloc_type_t ct, biggest_t data) |
Set biggest element in internal union (careful - this function does not clean up!) | |
void | set_reg1 (int reg, int off=0) |
Set register location. | |
void | set_reg2 (int _reg1, int _reg2) |
Set secondary register location. | |
void | set_stkoff (sval_t off) |
Set stack offset location. | |
void | set_ea (ea_t _ea) |
Set static ea location. | |
void | consume_rrel (rrel_t *p) |
Set register-relative location - can't be nullptr. | |
void | consume_scattered (scattered_aloc_t *p) |
Set distributed argument location. | |
void | set_badloc (void) |
Set to invalid location. | |
sval_t | calc_offset (void) const |
Calculate offset that can be used to compare 2 similar arglocs. | |
bool | advance (int delta) |
Move the location to point 'delta' bytes further. | |
void | align_reg_high (size_t size, size_t _slotsize) |
Set register offset to align it to the upper part of _SLOTSIZE. | |
void | align_stkoff_high (size_t size, size_t _slotsize) |
Set stack offset to align to the upper part of _SLOTSIZE. | |
Public Attributes | |
ushort | off |
offset from the beginning of the argument | |
ushort | size |
the number of bytes | |
Additional Inherited Members | |
![]() | |
typedef size_t | biggest_t |
Detailed Description
Subsection of an argument location.
The documentation for this struct was generated from the following file:
Generated by