]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/value-prof.h
switch from gimple to gimple*
[thirdparty/gcc.git] / gcc / value-prof.h
index fa5340d93b7647942833de77a95ac2ec49f4f2d3..6dadb0cc97cf6d85987eda6f217668e9e59a3bf7 100644 (file)
@@ -51,7 +51,7 @@ struct histogram_value_t
   struct
     {
       tree value;              /* The value to profile.  */
-      gimple stmt;             /* Insn containing the value.  */
+      gimple *stmt;            /* Insn containing the value.  */
       gcov_type *counters;                     /* Pointer to first counter.  */
       struct histogram_value_t *next;          /* Linked list pointer.  */
     } hvalue;
@@ -78,20 +78,20 @@ 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,
+                                             gimple *stmt, tree);
+histogram_value gimple_histogram_value (struct function *, gimple *);
+histogram_value gimple_histogram_value_of_type (struct function *, gimple *,
                                                enum hist_type);
-void gimple_add_histogram_value (struct function *, gimple, histogram_value);
-void dump_histograms_for_stmt (struct function *, FILE *, gimple);
-void gimple_remove_histogram_value (struct function *, gimple, histogram_value);
-void gimple_remove_stmt_histograms (struct function *, gimple);
-void gimple_duplicate_stmt_histograms (struct function *, gimple,
-                                      struct function *, gimple);
-void gimple_move_stmt_histograms (struct function *, gimple, gimple);
+void gimple_add_histogram_value (struct function *, gimple *, histogram_value);
+void dump_histograms_for_stmt (struct function *, FILE *, gimple *);
+void gimple_remove_histogram_value (struct function *, gimple *, histogram_value);
+void gimple_remove_stmt_histograms (struct function *, gimple *);
+void gimple_duplicate_stmt_histograms (struct function *, gimple *,
+                                      struct function *, gimple *);
+void gimple_move_stmt_histograms (struct function *, gimple *, gimple *);
 void verify_histograms (void);
 void free_histograms (void);
-void stringop_block_profile (gimple, unsigned int *, HOST_WIDE_INT *);
+void stringop_block_profile (gimple *, unsigned int *, HOST_WIDE_INT *);
 gcall *gimple_ic (gcall *, struct cgraph_node *, int, gcov_type,
                  gcov_type);
 bool check_ic_target (gcall *, struct cgraph_node *);
@@ -112,7 +112,7 @@ extern void gimple_gen_const_delta_profiler (histogram_value,
 extern void gimple_gen_average_profiler (histogram_value, unsigned, unsigned);
 extern void gimple_gen_ior_profiler (histogram_value, unsigned, unsigned);
 extern void stream_out_histogram_value (struct output_block *, histogram_value);
-extern void stream_in_histogram_value (struct lto_input_block *, gimple);
+extern void stream_in_histogram_value (struct lto_input_block *, gimple *);
 extern struct cgraph_node* find_func_by_profile_id (int func_id);