diff options
Diffstat (limited to 'gcc-4.9/gcc/value-prof.h')
-rw-r--r-- | gcc-4.9/gcc/value-prof.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/value-prof.h b/gcc-4.9/gcc/value-prof.h index 9d2c3516d..af3a74ea2 100644 --- a/gcc-4.9/gcc/value-prof.h +++ b/gcc-4.9/gcc/value-prof.h @@ -34,6 +34,8 @@ enum hist_type called in indirect call */ HIST_TYPE_AVERAGE, /* Compute average value (sum of all values). */ HIST_TYPE_IOR, /* Used to compute expected alignment. */ + HIST_TYPE_INDIR_CALL_TOPN, /* Tries to identify the top N most frequently + called functions in indirect call. */ HIST_TYPE_TIME_PROFILE, /* Used for time profile */ HIST_TYPE_MAX }; @@ -75,6 +77,8 @@ typedef vec<histogram_value> histogram_values; extern void gimple_find_values_to_profile (histogram_values *); extern bool gimple_value_profile_transformations (void); +histogram_value gimple_alloc_histogram_value (struct function *, enum hist_type, + gimple stmt, tree); histogram_value gimple_histogram_value (struct function *, gimple); histogram_value gimple_histogram_value_of_type (struct function *, gimple, enum hist_type); @@ -89,7 +93,8 @@ void verify_histograms (void); void free_histograms (void); void stringop_block_profile (gimple, unsigned int *, HOST_WIDE_INT *); gimple gimple_ic (gimple, struct cgraph_node *, int, gcov_type, gcov_type); - +bool check_ic_target (gimple, struct cgraph_node *); +bool gimple_ic_transform (gimple_stmt_iterator *); /* In tree-profile.c. */ extern void gimple_init_edge_profiler (void); @@ -116,4 +121,3 @@ extern void branch_prob (void); extern void end_branch_prob (void); #endif /* GCC_VALUE_PROF_H */ - |