[08/12] Add common traits for integer hash keys
Jeff Law
law@redhat.com
Thu Jun 25 16:40:00 GMT 2015
On 06/23/2015 08:51 AM, Richard Sandiford wrote:
> Several places define hash traits for integers, using particular integer
> values as "empty" and "deleted" markers. This patch defines them in terms
> of a single int_hash class.
>
> I also needed to extend gengtype to accept "+" in template arguments.
>
>
> gcc/
> * gengtype-parse.c (require_template_declaration): Allow '+' in
> template parameters. Consolidate cases.
> * hash-traits.h (int_hash): New class.
> * alias.c (alias_set_hash): New structure.
> (alias_set_traits): Use it.
> * symbol-summary.h (function_summary::map_hash): New class.
> (function_summary::summary_hashmap_traits): Use it.
> * tree-inline.h (dependence_hash): New class.
> (dependence_hasher): Use it.
> * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
> * value-prof.c (profile_id_hash): New class.
> (profile_id_traits): Use it.
OK.
jeff
More information about the Gcc-patches
mailing list