GCC Middle and Back End API Reference
predefined_function_abi Class Reference

#include <function-abi.h>

Public Member Functions

unsigned int id () const
 
bool initialized_p () const
 
bool clobbers_full_reg_p (unsigned int regno) const
 
bool clobbers_at_least_part_of_reg_p (unsigned int regno) const
 
bool clobbers_reg_p (machine_mode mode, unsigned int regno) const
 
HARD_REG_SET full_reg_clobbers () const
 
HARD_REG_SET full_and_partial_reg_clobbers () const
 
HARD_REG_SET mode_clobbers (machine_mode mode) const
 
void initialize (unsigned int, const_hard_reg_set)
 
void add_full_reg_clobber (unsigned int)
 

Private Attributes

unsigned int m_id: NUM_ABI_IDS
 
unsigned int m_initialized: 1
 
HARD_REG_SET m_full_reg_clobbers
 
HARD_REG_SET m_full_and_partial_reg_clobbers
 
HARD_REG_SET m_mode_clobbers [NUM_MACHINE_MODES]
 

Detailed Description

Information about one of the target's predefined ABIs.   

Member Function Documentation

◆ add_full_reg_clobber()

void predefined_function_abi::add_full_reg_clobber ( unsigned int regno)
If the ABI has been initialized, add REGNO to the set of registers
that can be completely altered by a call.   

References ggc_alloc(), i, m_full_and_partial_reg_clobbers, m_full_reg_clobbers, m_initialized, m_mode_clobbers, and SET_HARD_REG_BIT.

◆ clobbers_at_least_part_of_reg_p()

bool predefined_function_abi::clobbers_at_least_part_of_reg_p ( unsigned int regno) const
inline

◆ clobbers_full_reg_p()

bool predefined_function_abi::clobbers_full_reg_p ( unsigned int regno) const
inline

◆ clobbers_reg_p()

bool predefined_function_abi::clobbers_reg_p ( machine_mode mode,
unsigned int regno ) const
inline

◆ full_and_partial_reg_clobbers()

HARD_REG_SET predefined_function_abi::full_and_partial_reg_clobbers ( ) const
inline

◆ full_reg_clobbers()

HARD_REG_SET predefined_function_abi::full_reg_clobbers ( ) const
inline

◆ id()

unsigned int predefined_function_abi::id ( ) const
inline

References m_id.

Referenced by function_abi::id(), and initialize().

◆ initialize()

void predefined_function_abi::initialize ( unsigned int id,
const_hard_reg_set full_reg_clobbers )

◆ initialized_p()

bool predefined_function_abi::initialized_p ( ) const
inline

References m_initialized.

◆ mode_clobbers()

HARD_REG_SET predefined_function_abi::mode_clobbers ( machine_mode mode) const
inline

References m_mode_clobbers.

Referenced by function_abi::mode_clobbers().

Field Documentation

◆ m_full_and_partial_reg_clobbers

HARD_REG_SET predefined_function_abi::m_full_and_partial_reg_clobbers
private

◆ m_full_reg_clobbers

HARD_REG_SET predefined_function_abi::m_full_reg_clobbers
private

◆ m_id

unsigned int predefined_function_abi::m_id
private

Referenced by id(), and initialize().

◆ m_initialized

unsigned int predefined_function_abi::m_initialized
private

◆ m_mode_clobbers

HARD_REG_SET predefined_function_abi::m_mode_clobbers[NUM_MACHINE_MODES]
private

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