Home
last modified time | relevance | path

Searched refs:hvalue (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dvalue-prof.cc118 hist->hvalue.value = value; in gimple_alloc_histogram_value()
119 hist->hvalue.stmt = stmt; in gimple_alloc_histogram_value()
129 return htab_hash_pointer (((const_histogram_value)x)->hvalue.stmt); in histogram_hash()
137 return ((const_histogram_value) x)->hvalue.stmt == (const gimple *) y; in histogram_eq()
180 hist->hvalue.next = gimple_histogram_value (fun, stmt); in gimple_add_histogram_value()
194 set_histogram_value (fun, stmt, hist->hvalue.next); in gimple_remove_histogram_value()
198 while (hist2->hvalue.next != hist) in gimple_remove_histogram_value()
199 hist2 = hist2->hvalue.next; in gimple_remove_histogram_value()
200 hist2->hvalue.next = hist->hvalue.next; in gimple_remove_histogram_value()
202 free (hist->hvalue.counters); in gimple_remove_histogram_value()
[all …]
H A Dtree-profile.cc285 tree val = value->hvalue.value; in prepare_instrumented_value()
300 gimple *stmt = value->hvalue.stmt; in gimple_gen_interval_profiler()
326 gimple *stmt = value->hvalue.stmt; in gimple_gen_pow2_profiler()
346 gimple *stmt = value->hvalue.stmt; in gimple_gen_topn_values_profiler()
370 gimple *stmt = value->hvalue.stmt; in gimple_gen_ic_profiler()
398 stmt2 = gimple_build_assign (tmp1, unshare_expr (value->hvalue.value)); in gimple_gen_ic_profiler()
575 gimple *stmt = value->hvalue.stmt; in gimple_gen_average_profiler()
596 gimple *stmt = value->hvalue.stmt; in gimple_gen_ior_profiler()
H A Dprofile.cc840 int counters = hist->hvalue.counters[1]; in sort_hist_values()
852 gcov_type *p = &hist->hvalue.counters[2 * j + 2]; in sort_hist_values()
912 gimple *stmt = hist->hvalue.stmt; in compute_value_histograms()
928 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in compute_value_histograms()
931 hist->hvalue.counters[j] = act_count[t][j]; in compute_value_histograms()
933 hist->hvalue.counters[j] = 0; in compute_value_histograms()
945 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in compute_value_histograms()
948 hist->hvalue.counters[j] = aact_count[j]; in compute_value_histograms()
950 hist->hvalue.counters[j] = 0; in compute_value_histograms()
959 if (hist->hvalue.counters[0] >= 0 in compute_value_histograms()
[all …]
H A Dvalue-prof.h52 } hvalue; member
H A Dauto-profile.cc1013 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in afdo_indirect_call()
1017 hist->hvalue.counters[0] = total; in afdo_indirect_call()
1019 hist->hvalue.counters[1] = 1; in afdo_indirect_call()
1021 hist->hvalue.counters[2] = direct_call->profile_id; in afdo_indirect_call()
1023 hist->hvalue.counters[3] = max_iter->second; in afdo_indirect_call()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dvalue-prof.c118 hist->hvalue.value = value; in gimple_alloc_histogram_value()
119 hist->hvalue.stmt = stmt; in gimple_alloc_histogram_value()
129 return htab_hash_pointer (((const_histogram_value)x)->hvalue.stmt); in histogram_hash()
137 return ((const_histogram_value) x)->hvalue.stmt == (const gimple *) y; in histogram_eq()
180 hist->hvalue.next = gimple_histogram_value (fun, stmt); in gimple_add_histogram_value()
194 set_histogram_value (fun, stmt, hist->hvalue.next); in gimple_remove_histogram_value()
198 while (hist2->hvalue.next != hist) in gimple_remove_histogram_value()
199 hist2 = hist2->hvalue.next; in gimple_remove_histogram_value()
200 hist2->hvalue.next = hist->hvalue.next; in gimple_remove_histogram_value()
202 free (hist->hvalue.counters); in gimple_remove_histogram_value()
[all …]
H A Dprofile.c769 if (hist->hvalue.counters[2] == -1) in sort_hist_values()
787 gcov_type *p = &hist->hvalue.counters[2 * j + 1]; in sort_hist_values()
847 gimple *stmt = hist->hvalue.stmt; in compute_value_histograms()
857 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in compute_value_histograms()
860 hist->hvalue.counters[j] = aact_count[j]; in compute_value_histograms()
862 hist->hvalue.counters[j] = 0; in compute_value_histograms()
868 if (hist->hvalue.counters[2] != -1) in compute_value_histograms()
870 hist->hvalue.counters[2 * i + 2] in compute_value_histograms()
871 = RDIV (hist->hvalue.counters[2 * i + 2], GCOV_TOPN_VALUES); in compute_value_histograms()
882 if (hist->hvalue.counters[0] >= 0 in compute_value_histograms()
[all …]
H A Dtree-profile.c282 tree val = value->hvalue.value; in prepare_instrumented_value()
297 gimple *stmt = value->hvalue.stmt; in gimple_gen_interval_profiler()
323 gimple *stmt = value->hvalue.stmt; in gimple_gen_pow2_profiler()
343 gimple *stmt = value->hvalue.stmt; in gimple_gen_topn_values_profiler()
367 gimple *stmt = value->hvalue.stmt; in gimple_gen_ic_profiler()
395 stmt2 = gimple_build_assign (tmp1, unshare_expr (value->hvalue.value)); in gimple_gen_ic_profiler()
566 gimple *stmt = value->hvalue.stmt; in gimple_gen_average_profiler()
587 gimple *stmt = value->hvalue.stmt; in gimple_gen_ior_profiler()
H A Dvalue-prof.h52 } hvalue; member
H A Dauto-profile.c1013 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in afdo_indirect_call()
1016 hist->hvalue.counters[0] = direct_call->profile_id; in afdo_indirect_call()
1017 hist->hvalue.counters[1] = max_iter->second; in afdo_indirect_call()
1018 hist->hvalue.counters[2] = total; in afdo_indirect_call()
/netbsd-src/external/mit/lua/dist/src/
H A Dlvm.h94 : (slot = f(hvalue(t), k), /* else, do raw access */ \
105 : (slot = (l_castS2U(k) - 1u < hvalue(t)->alimit) \
106 ? &hvalue(t)->array[k - 1] : luaH_getint(hvalue(t), k), \
H A Dltm.c84 mt = hvalue(o)->metatable; in luaT_gettmbyobj()
102 if ((ttistable(o) && (mt = hvalue(o)->metatable) != NULL) || in luaT_objtypename()
H A Dlvm.c326 tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */
361 Table *h = hvalue(t); /* save 't' table */
644 if (hvalue(t1) == hvalue(t2)) return 1;
646 tm = fasttm(L, hvalue(t1)->metatable, TM_EQ);
648 tm = fasttm(L, hvalue(t2)->metatable, TM_EQ);
735 Table *h = hvalue(rb);
1954 Table *h = hvalue(s2v(ra));
H A Dlapi.c440 case LUA_VTABLE: return luaH_getn(hvalue(o)); in lua_rawlen()
673 (&hvalue(&G(L)->l_registry)->array[LUA_RIDX_GLOBALS - 1])
738 return hvalue(t); in gettable()
793 mt = hvalue(obj)->metatable; in lua_getmetatable()
953 mt = hvalue(s2v(L->top.p - 1)); in lua_setmetatable()
957 hvalue(obj)->metatable = mt; in lua_setmetatable()
H A Dlobject.h696 #define hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc)) macro