Lines Matching refs:hval
574 const char *hval = NULL;
582 #define ADD_CITER(citers, hval) \
591 if (ctf_dynset_cinsert (citers, hval) < 0) \
613 if ((hval = intern (fp, strdup (hashbuf))) == NULL)
628 return hval;
719 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num, child_type,
725 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "referenced type",
727 citer = hval;
747 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
754 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "sliced type",
756 citer = hval;
780 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
787 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "array contents",
789 ADD_CITER (citers, hval);
791 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
798 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "array index",
802 ADD_CITER (citers, hval);
818 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
825 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "func return",
831 ADD_CITER (citers, hval);
848 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
856 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "func arg type",
858 ADD_CITER (citers, hval);
907 if ((hval = ctf_dedup_hash_type (fp, input, inputs, input_num,
915 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "member hash",
919 ADD_CITER (citers, hval);
934 if ((hval = intern (fp, strdup (hashbuf))) == NULL)
950 if (ctf_dynset_cinsert (citer_hashes, hval) < 0)
965 if (ctf_dynset_exists (citer_hashes, hval, NULL))
967 if (ctf_dynset_cinsert (citer_hashes, hval) < 0)
975 return hval;
1032 const char *hval = NULL;
1092 if ((hval = ctf_dynhash_lookup (d->cd_type_hashes, type_id)) != NULL)
1096 type, hval);
1099 decorated, hval);
1101 return hval;
1111 if ((hval = ctf_dedup_rhash_type (fp, input, inputs, input_num,
1124 type_id, name ? name : "", hval);
1127 if (ctf_dynhash_cinsert (d->cd_type_hashes, type_id, hval) < 0)
1134 decorated, hval) < 0)
1143 input_num, type, hval);
1145 return hval;
1171 const char *hval)
1179 hval, decorated_name ? decorated_name : "(unnamed)",
1190 if (!ctf_assert (fp, orig_hval == hval))
1194 if (ctf_dynhash_cinsert (d->cd_output_mapping_guard, id, hval) < 0)
1204 hval)) == NULL)
1206 if (ctf_dynhash_cinsert (d->cd_output_first_gid, hval, id) < 0)
1213 if (ctf_dynhash_insert (d->cd_output_mapping, (void *) hval,
1232 (ctf_dynhash_lookup (d->cd_output_first_gid, hval));
1245 "kind %i", hval,
1265 if (!ctf_dynhash_lookup_kv (d->cd_nonroot_consistency, hval, NULL,
1273 if (ctf_dynhash_cinsert (d->cd_nonroot_consistency, hval, root_visible) < 0)
1283 if (ctf_dynhash_cinsert (d->cd_nonroot_consistency, hval, root_visible) < 0)
1327 void *hval, *root_visible;
1334 &hval, &root_visible)) == 0)
1354 const char *hval;
1358 hval = ctf_dynhash_lookup (d->cd_type_hashes, id);
1375 count = (long int) (uintptr_t) ctf_dynhash_lookup (name_counts, hval);
1377 if (ctf_dynhash_cinsert (name_counts, hval,
1393 ctf_dedup_mark_conflicting_hash (ctf_dict_t *fp, const char *hval)
1402 if (ctf_dynset_exists (d->cd_conflicting_types, hval, NULL))
1405 ctf_dprintf ("Marking %s as conflicted\n", hval);
1407 if (ctf_dynset_cinsert (d->cd_conflicting_types, hval) < 0)
1409 ctf_dprintf ("Out of memory marking %s as conflicted\n", hval);
1414 if ((citers = ctf_dynhash_lookup (d->cd_citers, hval)) == NULL)
1479 const char *hval = (const char *) key_;
1483 kind = ctf_dedup_hash_kind (arg->fp, arg->inputs, hval);
1492 hval, kind, arg->num_non_forwards);
1549 const char *hval = (const char *) hval_;
1557 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
1572 hval, (char *) k);
1573 ctf_dedup_mark_conflicting_hash (fp, hval);
1600 const char *hval;
1611 hval = (const char *) key;
1616 max_hval = hval;
1617 max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1621 void *gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1627 max_hval = hval;
1628 max_gid = ctf_dynhash_lookup (d->cd_output_first_gid, hval);
1641 hval = (const char *) key;
1642 if (strcmp (max_hval, hval) == 0)
1646 hval, (const char *) k);
1647 if (ctf_dedup_mark_conflicting_hash (fp, hval) < 0)
1828 const char *hval)
1844 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
1936 const char *hval = (const char *) k;
1942 conflicting = !ctf_dedup_multiple_input_dicts (output, inputs, hval);
1948 if (ctf_dynset_cinsert (to_mark, hval) < 0)
1956 const char *hval = (const char *) k;
1958 if (ctf_dedup_mark_conflicting_hash (output, hval) < 0)
2087 const char *hval,
2088 int (*visit_fun) (const char *hval,
2109 const char *hval,
2110 int (*visit_fun) (const char *hval,
2135 "kind %i\n", depth, hval, input_num, type, (void *) fp,
2141 return visit_fun (hval, output, inputs, ninputs, parents, visited, fp,
2272 return visit_fun (hval, output, inputs, ninputs, parents, visited, fp, type,
2291 const char *hval,
2292 int (*visit_fun) (const char *hval,
2314 type_ids = ctf_dynhash_lookup (d->cd_output_mapping, hval);
2318 _("looked up type kind by nonexistent hash %s"), hval);
2324 if (!ctf_dynset_exists (already_visited, hval, NULL))
2333 if (ctf_dynset_cinsert (already_visited, hval) < 0)
2345 if (!ctf_dynset_exists (d->cd_conflicting_types, hval, NULL))
2353 visited, id, hval, visit_fun,
2363 visited, id, hval,
2454 int (*visit_fun) (const char *hval,
2486 const char *hval = (const char *) k;
2489 already_visited, hval, visit_fun,
2512 conflicted per-TU type ID in INPUT with hash HVAL. Return its CTF ID, or 0
2517 const char *hval)
2528 if (!ctf_dynset_exists (od->cd_conflicting_types, hval, NULL)
2538 "hval %s\n", hval);
2595 const char *hval;
2624 hval = ctf_dynhash_lookup (od->cd_type_hashes,
2627 if (!ctf_assert (output, hval && td->cd_output_emission_hashes))
2638 input, id, hval);
2652 ctf_dprintf ("Looking up %i/%lx, hash %s, in target\n", input_num, id, hval);
2654 target_id = ctf_dynhash_lookup (td->cd_output_emission_hashes, hval);
2664 target_id = ctf_dynhash_lookup (od->cd_output_emission_hashes, hval);
2667 input, id, hval);
2686 /* Emit a single deduplicated TYPE with the given HVAL, located in a given
2703 ctf_dedup_emit_type (const char *hval, ctf_dict_t *output, ctf_dict_t **inputs,
2734 depth, hval, ctf_link_input_name (input));
2739 is_conflicting = ctf_dynset_exists (d->cd_conflicting_types, hval, NULL);
2745 depth, hval, input_num, type);
2796 be duplicated in phase 2 as well. Avoid this by making sure this hval
2801 && ctf_dynhash_lookup (target->ctf_dedup.cd_output_emission_hashes, hval))
2844 if (ctf_dynhash_lookup (d->cd_nonroot_consistency, hval))
2856 ctf_dprintf ("%s, kind %i, hval %s: conflicting type marked as "
2858 "kind %i.\n", name, kind, hval, ctf_cuname (target),
2870 depth, hval, name ? name : "", input_num, (void *) target);
2918 ctf_dprintf ("%s, kind %i, hval %s: conflicting type marked "
2920 "%s.\n", name, kind, hval, enumerand);
3103 hval, (void *) (uintptr_t) new_type) < 0)
3112 "target %p (%s)\n", depth, hval, input_num, type, new_type,
3314 const char *hval;
3346 hval = ctf_dynhash_lookup (d->cd_type_hashes,
3349 if (!ctf_assert (output, hval != NULL))
3356 if (ctf_dynhash_lookup_kv (fp->ctf_dedup.cd_output_emission_hashes, hval,
3365 hval, NULL, &type_ptr))