GCC Middle and Back End API Reference
stats_counter_hasher Struct Reference
Inheritance diagram for stats_counter_hasher:
Collaboration diagram for stats_counter_hasher:

Public Types

typedef statistics_countervalue_type
 
typedef statistics_countercompare_type
 

Static Public Member Functions

static hashval_t hash (const statistics_counter *)
 
static bool equal (const statistics_counter *, const statistics_counter *)
 
static void remove (statistics_counter *)
 
static hashval_t hash (const value_type &)
 
static bool equal (const value_type &existing, const compare_type &candidate)
 
static void mark_deleted (statistics_counter *&)
 
static void mark_empty (statistics_counter *&)
 
static bool is_deleted (statistics_counter *)
 
static bool is_empty (statistics_counter *)
 

Static Public Attributes

static const bool empty_zero_p
 

Detailed Description

Hashtable helpers.   

Member Typedef Documentation

◆ compare_type

◆ value_type

Member Function Documentation

◆ equal() [1/2]

bool stats_counter_hasher::equal ( const statistics_counter * c1,
const statistics_counter * c2 )
inlinestatic
Compare two statistic counters by their string IDs.   

References ggc_alloc().

◆ equal() [2/2]

bool pointer_hash< statistics_counter >::equal ( const value_type & existing,
const compare_type & candidate )
inlinestaticinherited

◆ hash() [1/2]

hashval_t stats_counter_hasher::hash ( const statistics_counter * c)
inlinestatic
Hash a statistic counter by its string ID.   

References ggc_alloc(), statistics_counter::id, and statistics_counter::val.

◆ hash() [2/2]

hashval_t pointer_hash< statistics_counter >::hash ( const value_type & candidate)
inlinestaticinherited

◆ is_deleted()

bool pointer_hash< statistics_counter >::is_deleted ( statistics_counter * e)
inlinestaticinherited

◆ is_empty()

bool pointer_hash< statistics_counter >::is_empty ( statistics_counter * e)
inlinestaticinherited

◆ mark_deleted()

void pointer_hash< statistics_counter >::mark_deleted ( statistics_counter *& e)
inlinestaticinherited

◆ mark_empty()

void pointer_hash< statistics_counter >::mark_empty ( statistics_counter *& e)
inlinestaticinherited

◆ remove()

void stats_counter_hasher::remove ( statistics_counter * v)
inlinestatic
Free a statistics entry.   

References CONST_CAST, free(), and statistics_counter::id.

Field Documentation

◆ empty_zero_p

const bool pointer_hash< statistics_counter >::empty_zero_p
staticinherited

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