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

Public Types

typedef decl_or_value compare_type
 
typedef variablevalue_type
 

Static Public Member Functions

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

Static Public Attributes

static const bool empty_zero_p
 

Detailed Description

Variable hashtable helpers.   

Member Typedef Documentation

◆ compare_type

◆ value_type

typedef variable * pointer_hash< variable >::value_type
inherited

Member Function Documentation

◆ equal() [1/2]

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

◆ equal() [2/2]

bool variable_hasher::equal ( const variable * v,
const decl_or_value y )
inlinestatic
Compare the declaration of variable X with declaration Y.   

References variable::dv, and y.

◆ hash() [1/2]

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

◆ hash() [2/2]

hashval_t variable_hasher::hash ( const variable * v)
inlinestatic
The hash function for variable_htab, computes the hash value
from the declaration of variable X.   

References variable::dv, and dv_htab_hash().

◆ is_deleted()

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

◆ is_empty()

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

◆ mark_deleted()

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

◆ mark_empty()

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

◆ remove()

void variable_hasher::remove ( variable * var)
inlinestatic
Free the element of VARIABLE_HTAB (its type is struct variable_def).   

References variable_htab_free().

Field Documentation

◆ empty_zero_p

const bool pointer_hash< variable >::empty_zero_p
staticinherited

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