GCC Middle and Back End API Reference
fast_function_summary< T *, V > Class Template Reference

#include <symbol-summary.h>

Inheritance diagram for fast_function_summary< T *, V >:
Collaboration diagram for fast_function_summary< T *, V >:

Public Member Functions

 fast_function_summary (symbol_table *symtab CXX_MEM_STAT_INFO)
 
virtual ~fast_function_summary ()
 
template<typename Arg, bool(*)(const T &, Arg) f>
void traverse (Arg a) const
 
Tget_create (cgraph_node *node)
 
Tget (cgraph_node *node) ATTRIBUTE_PURE
 
void remove (cgraph_node *node)
 
bool exists (cgraph_node *node)
 
virtual void insert (cgraph_node *, T *)
 
virtual void remove (cgraph_node *, T *)
 
virtual void duplicate (cgraph_node *, cgraph_node *, T *, T *)
 
void enable_insertion_hook ()
 
void disable_insertion_hook ()
 
void enable_duplication_hook ()
 
void disable_duplication_hook ()
 

Static Public Member Functions

static void symtab_insertion (cgraph_node *node, void *data)
 
static void symtab_removal (cgraph_node *node, void *data)
 
static void symtab_duplication (cgraph_node *node, cgraph_node *node2, void *data)
 

Protected Member Functions

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

Protected Attributes

symbol_tablem_symtab
 
cgraph_node_hook m_symtab_insertion
 
cgraph_node_hook m_symtab_removal
 
cgraph_2node_hook m_symtab_duplication
 
cgraph_node_hook_listm_symtab_insertion_hook
 
cgraph_node_hook_listm_symtab_removal_hook
 
cgraph_2node_hook_listm_symtab_duplication_hook
 

Private Member Functions

bool is_ggc () final override
 
 fast_function_summary ()
 

Private Attributes

vec< T *, V > * m_vector
 
object_allocator< Tm_allocator
 

Friends

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

Detailed Description

template<class T, class V>
class fast_function_summary< T *, V >
Function vector summary is a fast implementation of function_summary that
utilizes vector as primary storage of summaries.   

Constructor & Destructor Documentation

◆ fast_function_summary() [1/2]

◆ ~fast_function_summary()

◆ fast_function_summary() [2/2]

Member Function Documentation

◆ allocate_new()

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

◆ disable_duplication_hook()

template<class T>
void function_summary_base< T >::disable_duplication_hook ( )
inlineinherited

References m_symtab, m_symtab_duplication_hook, and NULL.

Referenced by unregister_hooks().

◆ disable_insertion_hook()

template<class T>
void function_summary_base< T >::disable_insertion_hook ( )
inlineinherited

References m_symtab, m_symtab_insertion_hook, and NULL.

Referenced by unregister_hooks().

◆ duplicate()

template<class T>
virtual void function_summary_base< T >::duplicate ( cgraph_node * ,
cgraph_node * ,
T * ,
T *  )
inlinevirtualinherited

◆ enable_duplication_hook()

template<class T>
void function_summary_base< T >::enable_duplication_hook ( )
inlineinherited

◆ enable_insertion_hook()

template<class T>
void function_summary_base< T >::enable_insertion_hook ( )
inlineinherited

◆ exists()

template<class T, class V>
bool fast_function_summary< T *, V >::exists ( cgraph_node * node)
inline

References cgraph_node::get_summary_id(), m_vector, and NULL.

Referenced by get(), and remove().

◆ get()

template<class T, class V>
T * fast_function_summary< T *, V >::get ( cgraph_node * node)
inline

References exists(), NULL, and T.

◆ get_create()

◆ insert()

template<class T>
virtual void function_summary_base< T >::insert ( cgraph_node * ,
T *  )
inlinevirtualinherited

References gcc_unreachable, and T.

◆ is_ggc()

template<typename T, typename V>
bool fast_function_summary< T *, V >::is_ggc ( )
inlinefinaloverrideprivatevirtual

◆ release()

◆ remove() [1/2]

template<class T, class V>
void fast_function_summary< T *, V >::remove ( cgraph_node * node)
inline

◆ remove() [2/2]

template<class T>
virtual void function_summary_base< T >::remove ( cgraph_node * ,
T *  )
inlinevirtualinherited

References T.

◆ symtab_duplication()

template<typename T, typename V>
void fast_function_summary< T *, V >::symtab_duplication ( cgraph_node * node,
cgraph_node * node2,
void * data )
static

◆ symtab_insertion()

template<typename T, typename V>
void fast_function_summary< T *, V >::symtab_insertion ( cgraph_node * node,
void * data )
static

◆ symtab_removal()

template<typename T, typename V>
void fast_function_summary< T *, V >::symtab_removal ( cgraph_node * node,
void * data )
static

◆ traverse()

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

References a, i, m_vector, and NULL.

◆ unregister_hooks()

Friends And Related Symbol Documentation

◆ gt_ggc_mx

template<class T, class V>
template<typename U>
void gt_ggc_mx ( fast_function_summary< U *, va_gc > *const & )
friend

References fast_function_summary(), and gt_ggc_mx.

Referenced by gt_ggc_mx.

◆ gt_pch_nx [1/2]

template<class T, class V>
template<typename U>
void gt_pch_nx ( fast_function_summary< U *, va_gc > *const & )
friend

References fast_function_summary(), and gt_pch_nx.

Referenced by gt_pch_nx, and gt_pch_nx.

◆ gt_pch_nx [2/2]

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

References fast_function_summary(), gt_pch_nx, and T.

Field Documentation

◆ m_allocator

template<class T>
object_allocator<T> function_summary_base< T >::m_allocator
privateinherited

◆ m_symtab

◆ m_symtab_duplication

template<class T>
cgraph_2node_hook function_summary_base< T >::m_symtab_duplication
protectedinherited

◆ m_symtab_duplication_hook

template<class T>
cgraph_2node_hook_list* function_summary_base< T >::m_symtab_duplication_hook
protectedinherited

◆ m_symtab_insertion

template<class T>
cgraph_node_hook function_summary_base< T >::m_symtab_insertion
protectedinherited

◆ m_symtab_insertion_hook

template<class T>
cgraph_node_hook_list* function_summary_base< T >::m_symtab_insertion_hook
protectedinherited

◆ m_symtab_removal

template<class T>
cgraph_node_hook function_summary_base< T >::m_symtab_removal
protectedinherited

Referenced by function_summary_base().

◆ m_symtab_removal_hook

template<class T>
cgraph_node_hook_list* function_summary_base< T >::m_symtab_removal_hook
protectedinherited

◆ m_vector

template<class T, class V>
vec<T *, V>* fast_function_summary< T *, V >::m_vector
private

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