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

Public Types

typedef void * compare_type
 
typedef ptr_datavalue_type
 

Static Public Member Functions

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

Static Public Attributes

static const bool empty_zero_p
 

Detailed Description

Helper for hashing saving_htab.   

Member Typedef Documentation

◆ compare_type

◆ value_type

typedef ptr_data* pointer_hash< ptr_data >::value_type
inherited

Member Function Documentation

◆ equal() [1/2]

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

◆ equal() [2/2]

bool saving_hasher::equal ( const ptr_data * p1,
const void * p2 )
inlinestatic

References ptr_data::obj.

◆ hash() [1/2]

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

◆ hash() [2/2]

hashval_t saving_hasher::hash ( const ptr_data * p)
inlinestatic

References ptr_data::obj, and POINTER_HASH.

◆ is_deleted()

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

◆ is_empty()

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

◆ mark_deleted()

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

◆ mark_empty()

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

◆ remove()

void typed_free_remove< ptr_data >::remove ( ptr_data * p)
inlinestaticinherited
Remove with free.   

Field Documentation

◆ empty_zero_p

const bool pointer_hash< ptr_data >::empty_zero_p
staticinherited

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