20#ifndef GCC_VALUE_PROF_H
21#define GCC_VALUE_PROF_H
38#define COUNTER_FOR_HIST_TYPE(TYPE) ((int) (TYPE) + GCOV_FIRST_VALUE_COUNTER)
39#define HIST_TYPE_FOR_COUNTER(COUNTER) \
40 ((enum hist_type) ((COUNTER) - GCOV_FIRST_VALUE_COUNTER))
Definition profile-count.h:149
class edge_def * edge
Definition coretypes.h:348
int64_t gcov_type
Definition coretypes.h:46
union tree_node * tree
Definition coretypes.h:97
void branch_prob(bool thunk)
Definition profile.cc:1365
bool coverage_instrumentation_p()
Definition profile.cc:2075
void end_branch_prob(void)
Definition profile.cc:1977
void read_thunk_profile(struct cgraph_node *node)
Definition profile.cc:1195
void init_branch_prob(void)
Definition profile.cc:1956
Definition function.h:249
struct histogram_value_t * next
Definition value-prof.h:45
enum hist_type type
Definition value-prof.h:53
struct function * fun
Definition value-prof.h:55
unsigned n_counters
Definition value-prof.h:54
union histogram_value_t::@223303151314377236333326352027154142227101127262 hdata
struct histogram_value_t::@003313020367136206100221151347031061331353050077 hvalue
Definition lto-streamer.h:745
#define NULL
Definition system.h:58
void gimple_gen_ic_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1624
void gimple_gen_ic_func_profiler(void)
Definition tree-profile.cc:1673
void gimple_init_gcov_profiler(void)
Definition tree-profile.cc:1309
void gimple_gen_pow2_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1582
void gimple_gen_topn_values_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1602
void gimple_gen_edge_profiler(int edgeno, edge e)
Definition tree-profile.cc:1530
void gimple_gen_average_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1791
void gimple_gen_interval_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1556
void gimple_gen_ior_profiler(histogram_value value, unsigned tag)
Definition tree-profile.cc:1812
void gimple_gen_time_profiler(unsigned tag)
Definition tree-profile.cc:1752
#define NULL_TREE
Definition tree.h:318
struct histogram_value_t::@223303151314377236333326352027154142227101127262::@176017256012206175173342300055043023020374317110 intvl
bool get_nth_most_common_value(gimple *stmt, const char *counter_type, histogram_value hist, gcov_type *value, gcov_type *count, gcov_type *all, unsigned n)
Definition value-prof.cc:749
void dump_histograms_for_stmt(struct function *fun, FILE *dump_file, gimple *stmt)
Definition value-prof.cc:421
void stream_out_histogram_value(struct output_block *ob, histogram_value hist)
Definition value-prof.cc:311
void stream_in_histogram_value(class lto_input_block *ib, gimple *stmt)
Definition value-prof.cc:343
histogram_value gimple_histogram_value_of_type(struct function *fun, gimple *stmt, enum hist_type type)
Definition value-prof.cc:211
histogram_value gimple_alloc_histogram_value(struct function *fun, enum hist_type type, gimple *stmt, tree value)
Definition value-prof.cc:114
histogram_value gimple_histogram_value(struct function *fun, gimple *stmt)
Definition value-prof.cc:166
bool gimple_value_profile_transformations(void)
Definition value-prof.cc:603
DEBUG_FUNCTION void verify_histograms(void)
Definition value-prof.cc:499
void gimple_find_values_to_profile(histogram_values *values)
Definition value-prof.cc:1908
void stringop_block_profile(gimple *stmt, unsigned int *expected_align, HOST_WIDE_INT *expected_size)
Definition value-prof.cc:1729
void gimple_duplicate_stmt_histograms(struct function *fun, gimple *stmt, struct function *ofun, gimple *ostmt)
Definition value-prof.cc:441
void gimple_remove_stmt_histograms(struct function *fun, gimple *stmt)
Definition value-prof.cc:431
void gimple_remove_histogram_value(struct function *fun, gimple *stmt, histogram_value hist)
Definition value-prof.cc:188
void free_histograms(struct function *fn)
Definition value-prof.cc:545
gcall * gimple_ic(gcall *icall_stmt, struct cgraph_node *direct_call, profile_probability prob)
Definition value-prof.cc:1308
void gimple_move_stmt_histograms(struct function *fun, gimple *stmt, gimple *ostmt)
Definition value-prof.cc:459
struct cgraph_node * find_func_by_profile_id(int profile_id)
Definition value-prof.cc:1290
void gimple_add_histogram_value(struct function *fun, gimple *stmt, histogram_value hist)
Definition value-prof.cc:177
const struct histogram_value_t * const_histogram_value
Definition value-prof.h:67
hist_type
Definition value-prof.h:25
@ HIST_TYPE_MAX
Definition value-prof.h:35
@ HIST_TYPE_TOPN_VALUES
Definition value-prof.h:29
@ HIST_TYPE_POW2
Definition value-prof.h:28
@ HIST_TYPE_IOR
Definition value-prof.h:33
@ HIST_TYPE_AVERAGE
Definition value-prof.h:32
@ HIST_TYPE_TIME_PROFILE
Definition value-prof.h:34
@ HIST_TYPE_INTERVAL
Definition value-prof.h:26
@ HIST_TYPE_INDIR_CALL
Definition value-prof.h:30
struct histogram_value_t * histogram_value
Definition value-prof.h:66
vec< histogram_value > histogram_values
Definition value-prof.h:70