Home
last modified time | relevance | path

Searched refs:hstate (Results 1 – 25 of 29) sorted by relevance

12

/netbsd/src/external/gpl3/gcc/dist/gcc/
Drtlhash.cc33 add_rtx (const_rtx x, hash &hstate) in add_rtx() argument
43 hstate.add_object (code); in add_rtx()
45 hstate.add_object (mode); in add_rtx()
49 hstate.add_int (REGNO (x)); in add_rtx()
52 hstate.add_object (INTVAL (x)); in add_rtx()
56 hstate.add_object (CONST_WIDE_INT_ELT (x, i)); in add_rtx()
60 hstate.add_wide_int (CONST_POLY_INT_COEFFS (x)[i]); in add_rtx()
64 hstate.add (XSTR (x, 0), strlen (XSTR (x, 0)) + 1); in add_rtx()
84 hstate.add_hwi (XWINT (x, i)); in add_rtx()
88 hstate.add_int (XINT (x, i)); in add_rtx()
[all …]
Dlto-streamer-out.cc1176 inchash::hash hstate; in hash_tree() local
1182 hstate.add_int (0); \ in hash_tree()
1184 hstate.add_int (streamer_tree_cache_get_hash (cache, ix)); \ in hash_tree()
1186 hstate.add_int (*map->get (SIBLING)); \ in hash_tree()
1188 hstate.add_int (1); \ in hash_tree()
1193 hstate.add_int (code); in hash_tree()
1196 hstate.add_flag (TREE_SIDE_EFFECTS (t)); in hash_tree()
1197 hstate.add_flag (TREE_CONSTANT (t)); in hash_tree()
1198 hstate.add_flag (TREE_READONLY (t)); in hash_tree()
1199 hstate.add_flag (TREE_PUBLIC (t)); in hash_tree()
[all …]
Dtree-ssa-scopedtables.cc374 add_expr_commutative (const_tree t1, const_tree t2, hash &hstate) in add_expr_commutative() argument
380 hstate.add_commutative (one, two); in add_expr_commutative()
390 add_hashable_expr (const struct hashable_expr *expr, hash &hstate) in add_hashable_expr() argument
395 inchash::add_expr (expr->ops.single.rhs, hstate); in add_hashable_expr()
399 hstate.add_object (expr->ops.unary.op); in add_hashable_expr()
407 hstate.add_int (TYPE_UNSIGNED (expr->type)); in add_hashable_expr()
409 inchash::add_expr (expr->ops.unary.opnd, hstate); in add_hashable_expr()
413 hstate.add_object (expr->ops.binary.op); in add_hashable_expr()
416 expr->ops.binary.opnd1, hstate); in add_hashable_expr()
419 inchash::add_expr (expr->ops.binary.opnd0, hstate); in add_hashable_expr()
[all …]
Dipa-icf.h99 inchash::hash hstate; in hash() local
100 hstate.add_int (v->m_references.length ()); in hash()
103 hstate.add_int (v->m_references[i]->ultimate_alias_target ()->order); in hash()
105 hstate.add_int (v->m_interposables.length ()); in hash()
108 hstate.add_int (v->m_interposables[i]->ultimate_alias_target ()->order); in hash()
110 return hstate.end (); in hash()
156 inchash::hash hstate; in hash() local
158 hstate.add_ptr (pair->item); in hash()
159 hstate.add_int (pair->index); in hash()
161 return hstate.end (); in hash()
[all …]
Dipa-icf.cc265 inchash::hash hstate; in get_bb_hash() local
267 hstate.add_int (basic_block->nondbg_stmt_count); in get_bb_hash()
268 hstate.add_int (basic_block->edge_count); in get_bb_hash()
270 return hstate.end (); in get_bb_hash()
280 inchash::hash hstate; in get_hash() local
281 hstate.add_int (177454); /* Random number for function type. */ in get_hash()
283 hstate.add_int (arg_count); in get_hash()
284 hstate.add_int (cfg_checksum); in get_hash()
285 hstate.add_int (gcode_hash); in get_hash()
288 hstate.merge_hash (get_bb_hash (bb_sorted[i])); in get_hash()
[all …]
Dipa-icf-gimple.cc241 func_checker::hash_operand (const_tree arg, inchash::hash &hstate, in hash_operand() argument
246 hstate.merge_hash (0); in hash_operand()
260 hstate.add_int (PARM_DECL); in hash_operand()
261 hstate.add_int (index); in hash_operand()
269 hstate.add_int (TREE_CODE (arg)); in hash_operand()
272 hstate.add_int (SSA_NAME); in hash_operand()
274 hash_operand (SSA_NAME_VAR (arg), hstate, flags); in hash_operand()
277 inchash::add_expr (DECL_FIELD_OFFSET (arg), hstate, flags); in hash_operand()
278 inchash::add_expr (DECL_FIELD_BIT_OFFSET (arg), hstate, flags); in hash_operand()
288 hstate.add_int (0xc10bbe5); in hash_operand()
[all …]
Dtree-ssa-sccvn.h183 inchash::hash hstate; in vn_hash_constant_with_type() local
184 inchash::add_expr (constant, hstate); in vn_hash_constant_with_type()
185 hstate.merge_hash (vn_hash_type (TREE_TYPE (constant))); in vn_hash_constant_with_type()
186 return hstate.end (); in vn_hash_constant_with_type()
Dgraphite.cc256 inchash::hash hstate (0); in cached_scalar_evolution_in_region() local
257 hstate.add_int (key.entry_dest); in cached_scalar_evolution_in_region()
258 hstate.add_int (key.exit_src); in cached_scalar_evolution_in_region()
259 hstate.add_int (key.loop_num); in cached_scalar_evolution_in_region()
260 inchash::add_expr (key.expr, hstate); in cached_scalar_evolution_in_region()
261 key.hash = hstate.end (); in cached_scalar_evolution_in_region()
Dsymtab-thunks.cc150 inchash::hash hstate; in hash() local
151 hstate.add_hwi (fixed_offset); in hash()
152 hstate.add_hwi (virtual_value); in hash()
153 hstate.add_flag (this_adjusting); in hash()
154 hstate.add_flag (virtual_offset_p); in hash()
155 return hstate.end (); in hash()
Dtree-ssa-tail-merge.cc462 inchash::hash hstate (bitmap_hash (e->succs)); in same_succ_hash() local
482 hstate.add_int (gimple_code (stmt)); in same_succ_hash()
484 hstate.add_int (gimple_assign_rhs_code (stmt)); in same_succ_hash()
488 hstate.add_int (gimple_call_internal_fn (stmt)); in same_succ_hash()
491 inchash::add_expr (gimple_call_fn (stmt), hstate); in same_succ_hash()
493 inchash::add_expr (gimple_call_chain (stmt), hstate); in same_succ_hash()
499 inchash::add_expr (arg, hstate); in same_succ_hash()
503 hstate.add_int (size); in same_succ_hash()
506 hstate.add_int (bb->loop_father->num); in same_succ_hash()
512 hstate.add_int (flags); in same_succ_hash()
[all …]
Dmem-stats.h285 inchash::hash hstate; in hash() local
287 hstate.add_ptr ((const void *)l->m_filename); in hash()
288 hstate.add_ptr (l->m_function); in hash()
289 hstate.add_int (l->m_line); in hash()
291 return hstate.end (); in hash()
Dsanopt.cc111 inchash::hash hstate (0); in hash() local
112 inchash::add_expr (ref.t1, hstate); in hash()
113 inchash::add_expr (ref.t2, hstate); in hash()
114 inchash::add_expr (ref.t3, hstate); in hash()
115 return hstate.end (); in hash()
170 inchash::hash hstate (0); in hash() local
171 inchash::add_expr (ref.ptr, hstate); in hash()
172 hstate.add_int (ref.pos_p); in hash()
173 return hstate.end (); in hash()
Dtree-ssa-alias-compare.h40 inchash::hash &hstate);
Dtree-ssa-alias.cc4318 inchash::hash &hstate) in hash_ao_ref() argument
4330 hash_operand (DECL_FIELD_OFFSET (field), hstate, 0); in hash_ao_ref()
4331 hash_operand (DECL_FIELD_BIT_OFFSET (field), hstate, 0); in hash_ao_ref()
4332 hash_operand (DECL_SIZE (field), hstate, 0); in hash_ao_ref()
4337 hash_operand (TREE_OPERAND (r, 1), hstate, 0); in hash_ao_ref()
4338 hash_operand (TREE_OPERAND (r, 2), hstate, 0); in hash_ao_ref()
4341 hash_operand (TYPE_SIZE (TREE_TYPE (ref->ref)), hstate, 0); in hash_ao_ref()
4342 hash_operand (r, hstate, OEP_ADDRESS_OF | OEP_MATCH_SIDE_EFFECTS); in hash_ao_ref()
4346 hash_operand (tbase, hstate, OEP_ADDRESS_OF | OEP_MATCH_SIDE_EFFECTS); in hash_ao_ref()
4347 hstate.add_poly_int (ref->offset); in hash_ao_ref()
[all …]
Dipa-devirt.cc2693 inchash::hash hstate (odr_query->otr_token); in hash() local
2695 hstate.add_hwi (odr_query->type->id); in hash()
2696 hstate.merge_hash (TYPE_UID (odr_query->context.outer_type)); in hash()
2697 hstate.add_hwi (odr_query->context.offset); in hash()
2698 hstate.add_hwi (odr_query->n_odr_types); in hash()
2702 hstate.merge_hash (TYPE_UID (odr_query->context.speculative_outer_type)); in hash()
2703 hstate.add_hwi (odr_query->context.speculative_offset); in hash()
2705 hstate.add_flag (odr_query->speculative); in hash()
2706 hstate.add_flag (odr_query->context.maybe_in_construction); in hash()
2707 hstate.add_flag (odr_query->context.maybe_derived_type); in hash()
[all …]
Dprofile.cc1004 inchash::hash hstate (0); in hash() local
1006 hstate.add_int (strlen (ref.filename)); in hash()
1007 hstate.add_int (ref.lineno); in hash()
1008 hstate.add_int (ref.bb_index); in hash()
1009 return hstate.end (); in hash()
Domp-general.cc2065 inchash::hash hstate; in hash() local
2066 hstate.add_int (DECL_UID (x->base->decl)); in hash()
2067 hstate.add_int (x->variants->length ()); in hash()
2072 hstate.add_int (DECL_UID (variant->variant->decl)); in hash()
2073 hstate.add_wide_int (variant->score); in hash()
2074 hstate.add_wide_int (variant->score_in_declare_simd_clone); in hash()
2075 hstate.add_ptr (variant->ctx); in hash()
2076 hstate.add_int (variant->matches); in hash()
2078 return hstate.end (); in hash()
Dfold-const.cc3663 operand_compare::hash_operand (const_tree t, inchash::hash &hstate, in hash_operand() argument
3672 hstate.merge_hash (0); in hash_operand()
3688 hstate.merge_hash (0); in hash_operand()
3693 hstate.add_hwi (TREE_INT_CST_ELT (t, i)); in hash_operand()
3702 hstate.merge_hash (val2); in hash_operand()
3708 hstate.merge_hash (val2); in hash_operand()
3712 hstate.add ((const void *) TREE_STRING_POINTER (t), in hash_operand()
3716 hash_operand (TREE_REALPART (t), hstate, flags); in hash_operand()
3717 hash_operand (TREE_IMAGPART (t), hstate, flags); in hash_operand()
3721 hstate.add_int (VECTOR_CST_NPATTERNS (t)); in hash_operand()
[all …]
Dtree-ssa-sccvn.cc688 vn_reference_op_compute_hash (const vn_reference_op_t vro1, inchash::hash &hstate) in vn_reference_op_compute_hash() argument
690 hstate.add_int (vro1->opcode); in vn_reference_op_compute_hash()
692 hstate.add_int (vro1->clique); in vn_reference_op_compute_hash()
694 inchash::add_expr (vro1->op0, hstate); in vn_reference_op_compute_hash()
696 inchash::add_expr (vro1->op1, hstate); in vn_reference_op_compute_hash()
698 inchash::add_expr (vro1->op2, hstate); in vn_reference_op_compute_hash()
706 inchash::hash hstate; in vn_reference_compute_hash() local
729 hstate.add_poly_int (off); in vn_reference_compute_hash()
737 hstate.add_int (TREE_CODE (op)); in vn_reference_compute_hash()
738 inchash::add_expr (op, hstate); in vn_reference_compute_hash()
[all …]
Ddwarf2out.cc5079 inchash::hash hstate; in hash() local
5083 hstate.add_int (0); in hash()
5086 hstate.add_int (1); in hash()
5093 inchash::add_rtx (a->addr.rtl, hstate); in hash()
5094 return hstate.end (); in hash()
7020 inchash::hash hstate; in loc_checksum() local
7025 hash_loc_operands (loc, hstate); in loc_checksum()
7026 hash = hstate.end(); in loc_checksum()
7243 inchash::hash hstate; in loc_checksum_ordered() local
7248 hash_loc_operands (loc, hstate); in loc_checksum_ordered()
[all …]
Dtree.cc1836 inchash::hash hstate; in hash() local
1838 hstate.add_int (TYPE_UID (TREE_TYPE (t))); in hash()
1840 hstate.add_wide_int (wi::to_wide (POLY_INT_CST_COEFF (t, i))); in hash()
1842 return hstate.end (); in hash()
5966 inchash::hash hstate; in type_hash_canon_hash() local
5968 hstate.add_int (TREE_CODE (type)); in type_hash_canon_hash()
5971 hstate.add_object (TYPE_HASH (TREE_TYPE (type))); in type_hash_canon_hash()
5975 hstate.add_object (IDENTIFIER_HASH_VALUE (get_attribute_name (t))); in type_hash_canon_hash()
5980 hstate.add_object (TYPE_HASH (TYPE_METHOD_BASETYPE (type))); in type_hash_canon_hash()
5985 hstate.add_object (TYPE_HASH (TREE_VALUE (t))); in type_hash_canon_hash()
[all …]
Dgcov.cc1304 inchash::hash hstate (0); in hash() local
1305 hstate.add_int (ref.source_file_idx); in hash()
1306 hstate.add_int (ref.start_line); in hash()
1307 return hstate.end (); in hash()
/netbsd/src/external/bsd/ntp/dist/ntpq/
Dntpq.c3928 struct hstate { struct
3941 struct hstate *hstate = arg; in list_md_fn() argument
3959 for (seen = hstate->seen; *seen; seen++) in list_md_fn()
3963 n = (seen - hstate->seen) + 2; in list_md_fn()
3964 hstate->seen = erealloc((void *)hstate->seen, n * sizeof(*seen)); in list_md_fn()
3965 hstate->seen[n-2] = name; in list_md_fn()
3966 hstate->seen[n-1] = NULL; in list_md_fn()
3968 if (hstate->list != NULL) in list_md_fn()
3969 len += strlen(hstate->list); in list_md_fn()
3971 len += (hstate->idx >= K_PER_LINE) in list_md_fn()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/lto/
Dlto-common.cc230 static void iterative_hash_canonical_type (tree type, inchash::hash &hstate);
242 inchash::hash hstate; in hash_canonical_type() local
256 hstate.add_int (code); in hash_canonical_type()
257 hstate.add_int (TYPE_MODE (type)); in hash_canonical_type()
266 hstate.add_int (TYPE_PRECISION (type)); in hash_canonical_type()
268 hstate.add_int (TYPE_UNSIGNED (type)); in hash_canonical_type()
273 hstate.add_poly_int (TYPE_VECTOR_SUBPARTS (type)); in hash_canonical_type()
274 hstate.add_int (TYPE_UNSIGNED (type)); in hash_canonical_type()
278 hstate.add_int (TYPE_UNSIGNED (type)); in hash_canonical_type()
288 hstate.add_int (TYPE_ADDR_SPACE (TREE_TYPE (type))); in hash_canonical_type()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Dcp-gimplify.cc3205 inchash::hash hstate (0); in hash() local
3206 hstate.add_int (ref.loc); in hash()
3207 hstate.add_int (ref.uid); in hash()
3208 return hstate.end (); in hash()

12