GCC Middle and Back End API Reference
ana::callsite_expr Class Reference

#include <callsite-expr.h>

Public Member Functions

 callsite_expr ()
bool param_p () const
int param_num () const
tree get_param_tree (tree fndecl) const
bool maybe_get_param_location (tree fndecl, location_t *out_loc) const
bool return_value_p () const

Static Public Member Functions

static callsite_expr from_zero_based_param (int idx)
static callsite_expr from_return_value ()

Private Member Functions

 callsite_expr (int val)

Private Attributes

int m_val

Detailed Description

An ID representing an expression at a callsite:
either a parameter index, or the return value (or unknown).   

Constructor & Destructor Documentation

◆ callsite_expr() [1/2]

ana::callsite_expr::callsite_expr ( )
inline

References m_val.

Referenced by from_return_value(), and from_zero_based_param().

◆ callsite_expr() [2/2]

ana::callsite_expr::callsite_expr ( int val)
inlineprivate

References m_val.

Member Function Documentation

◆ from_return_value()

callsite_expr ana::callsite_expr::from_return_value ( )
inlinestatic

References callsite_expr().

◆ from_zero_based_param()

callsite_expr ana::callsite_expr::from_zero_based_param ( int idx)
inlinestatic

References callsite_expr().

◆ get_param_tree()

tree ana::callsite_expr::get_param_tree ( tree fndecl) const

◆ maybe_get_param_location()

bool ana::callsite_expr::maybe_get_param_location ( tree fndecl,
location_t * out_loc ) const

◆ param_num()

int ana::callsite_expr::param_num ( ) const
inline

References gcc_assert, m_val, and param_p().

◆ param_p()

bool ana::callsite_expr::param_p ( ) const
inline

References m_val.

Referenced by param_num().

◆ return_value_p()

bool ana::callsite_expr::return_value_p ( ) const
inline

References m_val.

Field Documentation

◆ m_val

int ana::callsite_expr::m_val
private

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