GCC Middle and Back End API Reference
call_summary< T * > Class Template Reference

#include <symbol-summary.h>

Inheritance diagram for call_summary< T * >:
Collaboration diagram for call_summary< T * >:

Public Member Functions

 call_summary (symbol_table *symtab, bool ggc=false CXX_MEM_STAT_INFO)
 
virtual ~call_summary ()
 
template<typename Arg , bool(*)(const T &, Arg) f>
void traverse (Arg a) const
 
Tget_create (cgraph_edge *edge)
 
Tget (cgraph_edge *edge) ATTRIBUTE_PURE
 
void remove (cgraph_edge *edge)
 
bool exists (cgraph_edge *edge)
 
virtual void remove (cgraph_edge *, T *)
 
virtual void duplicate (cgraph_edge *, cgraph_edge *, T *, T *)
 
void enable_duplication_hook ()
 
void disable_duplication_hook ()
 

Static Public Member Functions

static void symtab_removal (cgraph_edge *edge, void *data)
 
static void symtab_duplication (cgraph_edge *edge1, cgraph_edge *edge2, void *data)
 

Protected Member Functions

Tallocate_new ()
 
void release (T *item)
 
void unregister_hooks ()
 

Protected Attributes

bool m_ggc
 
symbol_tablem_symtab
 
cgraph_edge_hook m_symtab_removal
 
cgraph_2edge_hook m_symtab_duplication
 
cgraph_edge_hook_listm_symtab_removal_hook
 
cgraph_2edge_hook_listm_symtab_duplication_hook
 
bool m_initialize_when_cloning
 

Private Types

typedef int_hash< int, 0, -1 > map_hash
 

Private Member Functions

bool is_ggc () final override
 

Private Attributes

hash_map< map_hash, T * > m_map
 
object_allocator< Tm_allocator
 

Friends

template<typename U >
void gt_ggc_mx (call_summary< U * > *const &)
 
template<typename U >
void gt_pch_nx (call_summary< U * > *const &)
 
template<typename U >
void gt_pch_nx (call_summary< U * > *const &, gt_pointer_operator, void *)
 

Detailed Description

template<class T>
class call_summary< T * >
Class to store auxiliary information about call graph edges.   

Member Typedef Documentation

◆ map_hash

template<class T >
typedef int_hash<int, 0, -1> call_summary< T * >::map_hash
private

Constructor & Destructor Documentation

◆ call_summary()

template<class T >
call_summary< T * >::call_summary ( symbol_table * symtab,
bool ggc = false CXX_MEM_STAT_INFO )
inline

◆ ~call_summary()

template<typename T >
call_summary< T * >::~call_summary ( )
virtual

References ggc_alloc().

Member Function Documentation

◆ allocate_new()

template<class T >
T * call_summary_base< T >::allocate_new ( )
inlineprotectedinherited

◆ disable_duplication_hook()

◆ duplicate()

template<class T >
virtual void call_summary_base< T >::duplicate ( cgraph_edge * ,
cgraph_edge * ,
T * ,
T *  )
inlinevirtualinherited

References gcc_unreachable.

◆ enable_duplication_hook()

◆ exists()

template<class T >
bool call_summary< T * >::exists ( cgraph_edge * edge)
inline

References NULL.

◆ get()

template<class T >
T * call_summary< T * >::get ( cgraph_edge * edge)
inline

References NULL.

◆ get_create()

template<class T >
T * call_summary< T * >::get_create ( cgraph_edge * edge)
inline

References ggc_alloc().

◆ is_ggc()

template<class T >
bool call_summary< T * >::is_ggc ( )
inlinefinaloverrideprivatevirtual

◆ release()

template<class T >
void call_summary_base< T >::release ( T * item)
inlineprotectedinherited

◆ remove() [1/2]

template<class T >
virtual void call_summary_base< T >::remove ( cgraph_edge * ,
T *  )
inlinevirtualinherited

◆ remove() [2/2]

template<class T >
void call_summary< T * >::remove ( cgraph_edge * edge)
inline

◆ symtab_duplication()

template<typename T >
void call_summary< T * >::symtab_duplication ( cgraph_edge * edge1,
cgraph_edge * edge2,
void * data )
static

References ggc_alloc(), and NULL.

◆ symtab_removal()

template<typename T >
void call_summary< T * >::symtab_removal ( cgraph_edge * edge,
void * data )
static

References ggc_alloc().

◆ traverse()

template<class T >
template<typename Arg , bool(*)(const T &, Arg) f>
void call_summary< T * >::traverse ( Arg a) const
inline

References a, and ggc_alloc().

◆ unregister_hooks()

template<typename T >
void call_summary_base< T >::unregister_hooks ( )
protectedinherited

Friends And Related Symbol Documentation

◆ gt_ggc_mx

template<class T >
template<typename U >
void gt_ggc_mx ( call_summary< U * > *const & )
friend

◆ gt_pch_nx [1/2]

template<class T >
template<typename U >
void gt_pch_nx ( call_summary< U * > *const & )
friend

◆ gt_pch_nx [2/2]

template<class T >
template<typename U >
void gt_pch_nx ( call_summary< U * > *const & ,
gt_pointer_operator ,
void *  )
friend

Field Documentation

◆ m_allocator

◆ m_ggc

template<class T >
bool call_summary< T * >::m_ggc
protected

◆ m_initialize_when_cloning

template<class T >
bool call_summary_base< T >::m_initialize_when_cloning
protectedinherited

◆ m_map

template<class T >
hash_map<map_hash, T *> call_summary< T * >::m_map
private

◆ m_symtab

◆ m_symtab_duplication

template<class T >
cgraph_2edge_hook call_summary_base< T >::m_symtab_duplication
protectedinherited

◆ m_symtab_duplication_hook

◆ m_symtab_removal

template<class T >
cgraph_edge_hook call_summary_base< T >::m_symtab_removal
protectedinherited

◆ m_symtab_removal_hook

template<class T >
cgraph_edge_hook_list* call_summary_base< T >::m_symtab_removal_hook
protectedinherited

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