summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2006-10-26 15:15:06 +0200
committerMatthias Braun <matze@braunis.de>2006-10-26 15:15:06 +0200
commite1d4778ef7c53519d9af64fa04a107ce4293437d (patch)
treef3c791c7d15fa45d33c9f317e466b38c212b9df2 /ir/be/bestat.h
parent537b4328e2f83d42e2af402b0cf067da9ca80c3b (diff)
output estimated cost statistics to statfile
Diffstat (limited to 'ir/be/bestat.h')
-rw-r--r--ir/be/bestat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/bestat.h b/ir/be/bestat.h
index 961ee2f..a3994e4 100644
--- a/ir/be/bestat.h
+++ b/ir/be/bestat.h
@@ -76,6 +76,12 @@ void be_do_stat_nodes(ir_graph *irg, const char *phase);
*/
void be_stat_init_irg(const arch_env_t *arch_env, ir_graph *irg);
+/**
+ * Gives a cost estimate for the program (based on execution frequencies)
+ * and backend op_estimated_cost
+ */
+double be_estimate_irg_costs(ir_graph *irg, const arch_env_t *arch_env, ir_exec_freq *execfreqs);
+
void be_init_stat_file(const char *filename, const char *sourcefilename);
void be_close_stat_file(void);