/* The value to measure. */
struct histogram_value_t
{
- union
+ struct
{
- struct
- {
- rtx value; /* The value to profile. */
- rtx seq; /* Insns required to count the profiled value. */
- rtx insn; /* Insn before that to measure. */
- enum machine_mode mode; /* Mode of value to profile. */
- } rtl;
- struct
- {
- tree value; /* The value to profile. */
- tree stmt; /* Insn containing the value. */
- gcov_type *counters; /* Pointer to first counter. */
- struct histogram_value_t *next; /* Linked list pointer. */
- } tree;
+ tree value; /* The value to profile. */
+ tree stmt; /* Insn containing the value. */
+ gcov_type *counters; /* Pointer to first counter. */
+ struct histogram_value_t *next; /* Linked list pointer. */
} hvalue;
enum hist_type type; /* Type of information to measure. */
unsigned n_counters; /* Number of required counters. */
typedef VEC(histogram_value,heap) *histogram_values;
/* Hooks registration. */
-extern void rtl_register_value_prof_hooks (void);
extern void tree_register_value_prof_hooks (void);
/* IR-independent entry points. */
extern void branch_prob (void);
extern void end_branch_prob (void);
extern void tree_register_profile_hooks (void);
-extern void rtl_register_profile_hooks (void);
/* In tree-profile.c. */
extern struct profile_hooks tree_profile_hooks;
-/* In rtl-profile.c. */
-extern struct profile_hooks rtl_profile_hooks;
-
#endif /* GCC_VALUE_PROF_H */