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

#include <region.h>

Inheritance diagram for ana::var_arg_region:
Collaboration diagram for ana::var_arg_region:

Data Structures

struct  key_t
 

Public Types

typedef unsigned id_t
 

Public Member Functions

 var_arg_region (symbol::id_t id, const frame_region *parent, unsigned idx)
 
const var_arg_regiondyn_cast_var_arg_region () const final override
 
enum region_kind get_kind () const final override
 
void dump_to_pp (pretty_printer *pp, bool simple) const final override
 
void print_dump_widget_label (pretty_printer *pp) const final override
 
const frame_regionget_frame_region () const
 
unsigned get_index () const
 
virtual const frame_regiondyn_cast_frame_region () const
 
virtual const function_regiondyn_cast_function_region () const
 
virtual const symbolic_regiondyn_cast_symbolic_region () const
 
virtual const decl_regiondyn_cast_decl_region () const
 
virtual const field_regiondyn_cast_field_region () const
 
virtual const element_regiondyn_cast_element_region () const
 
virtual const offset_regiondyn_cast_offset_region () const
 
virtual const sized_regiondyn_cast_sized_region () const
 
virtual const cast_regiondyn_cast_cast_region () const
 
virtual const string_regiondyn_cast_string_region () const
 
virtual const bit_range_regiondyn_cast_bit_range_region () const
 
virtual void accept (visitor *v) const
 
const regionget_parent_region () const
 
const regionget_base_region () const
 
bool base_region_p () const
 
bool descendent_of_p (const region *elder) const
 
const frame_regionmaybe_get_frame_region () const
 
enum memory_space get_memory_space () const
 
bool can_have_initial_svalue_p () const
 
const svalueget_initial_value_at_main (region_model_manager *mgr) const
 
tree maybe_get_decl () const
 
tree get_type () const
 
void print (const region_model &model, pretty_printer *pp) const
 
label_text get_desc (bool simple=true) const
 
void dump (bool simple) const
 
void dump () const
 
json::valueto_json () const
 
bool maybe_print_for_user (pretty_printer *pp, const region_model &model) const
 
std::unique_ptr< text_art::tree_widget > make_dump_widget (const text_art::dump_widget_info &dwi, const char *prefix=nullptr) const
 
bool non_null_p () const
 
bool involves_p (const svalue *sval) const
 
region_offset get_offset (region_model_manager *mgr) const
 
region_offset get_next_offset (region_model_manager *mgr) const
 
virtual bool get_byte_size (byte_size_t *out) const
 
virtual bool get_bit_size (bit_size_t *out) const
 
virtual const svalueget_byte_size_sval (region_model_manager *mgr) const
 
virtual const svalueget_bit_size_sval (region_model_manager *mgr) const
 
virtual bool get_relative_concrete_offset (bit_offset_t *out) const
 
virtual const svalueget_relative_symbolic_offset (region_model_manager *mgr) const
 
bool get_relative_concrete_byte_range (byte_range *out) const
 
void get_subregions_for_binding (region_model_manager *mgr, bit_offset_t start_bit_offset, bit_size_t size_in_bits, tree type, auto_vec< const region * > *out) const
 
bool symbolic_for_unknown_ptr_p () const
 
bool symbolic_p () const
 
virtual bool tracked_p () const
 
bool is_named_decl_p (const char *decl_name) const
 
bool empty_p () const
 
const complexityget_complexity () const
 
id_t get_id () const
 

Static Public Member Functions

static int cmp_ptr_ptr (const void *, const void *)
 
static int cmp_ids (const symbol *s1, const symbol *s2)
 

Private Member Functions

region_offset calc_offset (region_model_manager *mgr) const
 
const svaluecalc_initial_value_at_main (region_model_manager *mgr) const
 
virtual void add_dump_widget_children (text_art::tree_widget &, const text_art::dump_widget_info &dwi) const
 

Private Attributes

unsigned m_idx
 
const regionm_parent
 
tree m_type
 
region_offsetm_cached_offset
 
const svaluem_cached_init_sval_at_main
 
complexity m_complexity
 
id_t m_id
 

Detailed Description

A region for the N-th vararg within a frame_region for a variadic call.   

Member Typedef Documentation

◆ id_t

typedef unsigned ana::symbol::id_t
inherited

Constructor & Destructor Documentation

◆ var_arg_region()

ana::var_arg_region::var_arg_region ( symbol::id_t id,
const frame_region * parent,
unsigned idx )
inline

Member Function Documentation

◆ accept()

virtual void ana::region::accept ( visitor * v) const
virtualinherited

◆ add_dump_widget_children()

virtual void ana::region::add_dump_widget_children ( text_art::tree_widget & ,
const text_art::dump_widget_info & dwi ) const
privatevirtualinherited

◆ base_region_p()

bool ana::region::base_region_p ( ) const
inherited

◆ calc_initial_value_at_main()

const svalue * ana::region::calc_initial_value_at_main ( region_model_manager * mgr) const
privateinherited

◆ calc_offset()

region_offset ana::region::calc_offset ( region_model_manager * mgr) const
privateinherited

◆ can_have_initial_svalue_p()

bool ana::region::can_have_initial_svalue_p ( ) const
inherited

◆ cmp_ids()

static int ana::symbol::cmp_ids ( const symbol * s1,
const symbol * s2 )
staticinherited

◆ cmp_ptr_ptr()

static int ana::region::cmp_ptr_ptr ( const void * ,
const void *  )
staticinherited

◆ descendent_of_p()

bool ana::region::descendent_of_p ( const region * elder) const
inherited

◆ dump() [1/2]

void ana::region::dump ( ) const
inherited

◆ dump() [2/2]

void ana::region::dump ( bool simple) const
inherited

◆ dump_to_pp()

void ana::var_arg_region::dump_to_pp ( pretty_printer * pp,
bool simple ) const
finaloverridevirtual

Implements ana::region.

◆ dyn_cast_bit_range_region()

virtual const bit_range_region * ana::region::dyn_cast_bit_range_region ( ) const
inlinevirtualinherited

Reimplemented in ana::bit_range_region.

References NULL.

◆ dyn_cast_cast_region()

virtual const cast_region * ana::region::dyn_cast_cast_region ( ) const
inlinevirtualinherited

Reimplemented in ana::cast_region.

References NULL.

◆ dyn_cast_decl_region()

virtual const decl_region * ana::region::dyn_cast_decl_region ( ) const
inlinevirtualinherited

Reimplemented in ana::decl_region.

References NULL.

◆ dyn_cast_element_region()

virtual const element_region * ana::region::dyn_cast_element_region ( ) const
inlinevirtualinherited

Reimplemented in ana::element_region.

References NULL.

◆ dyn_cast_field_region()

virtual const field_region * ana::region::dyn_cast_field_region ( ) const
inlinevirtualinherited

Reimplemented in ana::field_region.

References NULL.

◆ dyn_cast_frame_region()

virtual const frame_region * ana::region::dyn_cast_frame_region ( ) const
inlinevirtualinherited

Reimplemented in ana::frame_region.

References NULL.

◆ dyn_cast_function_region()

virtual const function_region * ana::region::dyn_cast_function_region ( ) const
inlinevirtualinherited

Reimplemented in ana::function_region.

References NULL.

◆ dyn_cast_offset_region()

virtual const offset_region * ana::region::dyn_cast_offset_region ( ) const
inlinevirtualinherited

Reimplemented in ana::offset_region.

References NULL.

◆ dyn_cast_sized_region()

virtual const sized_region * ana::region::dyn_cast_sized_region ( ) const
inlinevirtualinherited

Reimplemented in ana::sized_region.

References NULL.

◆ dyn_cast_string_region()

virtual const string_region * ana::region::dyn_cast_string_region ( ) const
inlinevirtualinherited

Reimplemented in ana::string_region.

References NULL.

◆ dyn_cast_symbolic_region()

virtual const symbolic_region * ana::region::dyn_cast_symbolic_region ( ) const
inlinevirtualinherited

Reimplemented in ana::symbolic_region.

References NULL.

◆ dyn_cast_var_arg_region()

const var_arg_region * ana::var_arg_region::dyn_cast_var_arg_region ( ) const
inlinefinaloverridevirtual

Reimplemented from ana::region.

◆ empty_p()

bool ana::region::empty_p ( ) const
inherited

◆ get_base_region()

const region * ana::region::get_base_region ( ) const
inherited

◆ get_bit_size()

virtual bool ana::region::get_bit_size ( bit_size_t * out) const
virtualinherited

Reimplemented in ana::bit_range_region, and ana::sized_region.

◆ get_bit_size_sval()

virtual const svalue * ana::region::get_bit_size_sval ( region_model_manager * mgr) const
virtualinherited

Reimplemented in ana::bit_range_region, and ana::sized_region.

◆ get_byte_size()

virtual bool ana::region::get_byte_size ( byte_size_t * out) const
virtualinherited

Reimplemented in ana::bit_range_region, and ana::sized_region.

◆ get_byte_size_sval()

virtual const svalue * ana::region::get_byte_size_sval ( region_model_manager * mgr) const
virtualinherited

Reimplemented in ana::bit_range_region, and ana::sized_region.

◆ get_complexity()

const complexity & ana::symbol::get_complexity ( ) const
inlineinherited

◆ get_desc()

label_text ana::region::get_desc ( bool simple = true) const
inherited

◆ get_frame_region()

const frame_region * ana::var_arg_region::get_frame_region ( ) const

◆ get_id()

id_t ana::symbol::get_id ( ) const
inlineinherited

References ana::symbol::m_id.

◆ get_index()

unsigned ana::var_arg_region::get_index ( ) const
inline

References m_idx.

Referenced by remap_enclosing_frame().

◆ get_initial_value_at_main()

const svalue * ana::region::get_initial_value_at_main ( region_model_manager * mgr) const
inherited

◆ get_kind()

enum region_kind ana::var_arg_region::get_kind ( ) const
inlinefinaloverridevirtual

Implements ana::region.

References ana::RK_VAR_ARG.

◆ get_memory_space()

enum memory_space ana::region::get_memory_space ( ) const
inherited

◆ get_next_offset()

region_offset ana::region::get_next_offset ( region_model_manager * mgr) const
inherited

◆ get_offset()

region_offset ana::region::get_offset ( region_model_manager * mgr) const
inherited

◆ get_parent_region()

const region * ana::region::get_parent_region ( ) const
inlineinherited

References ana::region::m_parent.

Referenced by remap_enclosing_frame().

◆ get_relative_concrete_byte_range()

bool ana::region::get_relative_concrete_byte_range ( byte_range * out) const
inherited

◆ get_relative_concrete_offset()

virtual bool ana::region::get_relative_concrete_offset ( bit_offset_t * out) const
virtualinherited

◆ get_relative_symbolic_offset()

virtual const svalue * ana::region::get_relative_symbolic_offset ( region_model_manager * mgr) const
virtualinherited

◆ get_subregions_for_binding()

void ana::region::get_subregions_for_binding ( region_model_manager * mgr,
bit_offset_t start_bit_offset,
bit_size_t size_in_bits,
tree type,
auto_vec< const region * > * out ) const
inherited

◆ get_type()

tree ana::region::get_type ( ) const
inlineinherited

References ana::region::m_type.

◆ involves_p()

bool ana::region::involves_p ( const svalue * sval) const
inherited

◆ is_named_decl_p()

bool ana::region::is_named_decl_p ( const char * decl_name) const
inherited

◆ make_dump_widget()

std::unique_ptr< text_art::tree_widget > ana::region::make_dump_widget ( const text_art::dump_widget_info & dwi,
const char * prefix = nullptr ) const
inherited

◆ maybe_get_decl()

tree ana::region::maybe_get_decl ( ) const
inherited

◆ maybe_get_frame_region()

const frame_region * ana::region::maybe_get_frame_region ( ) const
inherited

◆ maybe_print_for_user()

bool ana::region::maybe_print_for_user ( pretty_printer * pp,
const region_model & model ) const
inherited

◆ non_null_p()

bool ana::region::non_null_p ( ) const
inherited

◆ print()

void ana::region::print ( const region_model & model,
pretty_printer * pp ) const
inherited

◆ print_dump_widget_label()

void ana::var_arg_region::print_dump_widget_label ( pretty_printer * pp) const
finaloverridevirtual

Implements ana::region.

◆ symbolic_for_unknown_ptr_p()

bool ana::region::symbolic_for_unknown_ptr_p ( ) const
inherited

◆ symbolic_p()

bool ana::region::symbolic_p ( ) const
inherited

◆ to_json()

json::value * ana::region::to_json ( ) const
inherited

◆ tracked_p()

virtual bool ana::region::tracked_p ( ) const
inlinevirtualinherited

Reimplemented in ana::decl_region, and ana::string_region.

Field Documentation

◆ m_cached_init_sval_at_main

const svalue* ana::region::m_cached_init_sval_at_main
mutableprivateinherited

◆ m_cached_offset

region_offset* ana::region::m_cached_offset
mutableprivateinherited

◆ m_complexity

complexity ana::symbol::m_complexity
privateinherited

◆ m_id

id_t ana::symbol::m_id
privateinherited

Referenced by ana::symbol::get_id().

◆ m_idx

unsigned ana::var_arg_region::m_idx
private

Referenced by get_index().

◆ m_parent

const region* ana::region::m_parent
privateinherited

◆ m_type

tree ana::region::m_type
privateinherited

Referenced by ana::region::get_type().


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