GCC Middle and Back End API Reference
rtx_obj_reference Class Reference

#include <rtlanal.h>

Public Member Functions

 rtx_obj_reference ()=default
 
 rtx_obj_reference (unsigned int regno, uint16_t flags, machine_mode mode, unsigned int multireg_offset=0)
 
bool is_reg () const
 
bool is_mem () const
 
bool is_read () const
 
bool is_write () const
 
bool is_clobber () const
 
bool is_pre_post_modify () const
 
bool is_multireg () const
 
bool in_mem_load () const
 
bool in_mem_store () const
 
bool in_address () const
 
bool in_subreg () const
 
bool in_note () const
 

Data Fields

unsigned int regno
 
unsigned int flags: 16
 
machine_mode mode: MACHINE_MODE_BITSIZE
 
unsigned int multireg_offset: 8
 

Detailed Description

Contains information about a reference to a register or variable memory.   

Constructor & Destructor Documentation

◆ rtx_obj_reference() [1/2]

rtx_obj_reference::rtx_obj_reference ( )
default

◆ rtx_obj_reference() [2/2]

rtx_obj_reference::rtx_obj_reference ( unsigned int regno,
uint16_t flags,
machine_mode mode,
unsigned int multireg_offset = 0 )
inline
Construct a reference with the given fields.   

Member Function Documentation

◆ in_address()

bool rtx_obj_reference::in_address ( ) const
inline

References in_mem_load(), and in_mem_store().

◆ in_mem_load()

bool rtx_obj_reference::in_mem_load ( ) const
inline

References flags, and rtx_obj_flags::IN_MEM_LOAD.

Referenced by in_address().

◆ in_mem_store()

bool rtx_obj_reference::in_mem_store ( ) const
inline

References flags, and rtx_obj_flags::IN_MEM_STORE.

Referenced by in_address().

◆ in_note()

bool rtx_obj_reference::in_note ( ) const
inline

References flags, and rtx_obj_flags::IN_NOTE.

◆ in_subreg()

bool rtx_obj_reference::in_subreg ( ) const
inline

References flags, and rtx_obj_flags::IN_SUBREG.

◆ is_clobber()

bool rtx_obj_reference::is_clobber ( ) const
inline

References flags, and rtx_obj_flags::IS_CLOBBER.

◆ is_mem()

bool rtx_obj_reference::is_mem ( ) const
inline

References MEM_REGNO, and regno.

◆ is_multireg()

bool rtx_obj_reference::is_multireg ( ) const
inline

◆ is_pre_post_modify()

bool rtx_obj_reference::is_pre_post_modify ( ) const
inline

◆ is_read()

bool rtx_obj_reference::is_read ( ) const
inline

References flags, and rtx_obj_flags::IS_READ.

◆ is_reg()

bool rtx_obj_reference::is_reg ( ) const
inline

References MEM_REGNO, and regno.

◆ is_write()

bool rtx_obj_reference::is_write ( ) const
inline

References flags, and rtx_obj_flags::IS_WRITE.

Field Documentation

◆ flags

unsigned int rtx_obj_reference::flags

◆ mode

machine_mode rtx_obj_reference::mode

◆ multireg_offset

unsigned int rtx_obj_reference::multireg_offset

◆ regno

unsigned int rtx_obj_reference::regno

Referenced by is_mem(), and is_reg().


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