Small changes
[libfirm] / ir / be / bestat.h
index 2d7c969..04e2462 100644 (file)
@@ -1,7 +1,11 @@
 #ifndef _BESTAT_H_
 #define _BESTAT_H_
 
+#include "firm_config.h"
 #include "be_t.h"
+#include "benodesets.h"
+
+#ifdef FIRM_STATISTICS
 
 /**
  * Collects statistics information about register pressure.
@@ -9,4 +13,18 @@
  */
 void be_do_stat_reg_pressure(be_irg_t *birg);
 
-#endif /* _BESTAT_H_ */
\ No newline at end of file
+/**
+ * Collect statistics about amount of ready nodes per block
+ * @param block     The block
+ * @param ready_set A set of ready nodes
+ */
+void be_do_stat_sched_ready(ir_node *block, nodeset *ready_set);
+
+#else
+
+#define be_do_stat_reg_pressure(birg)
+#define be_do_stat_sched_ready(block, ready_set)
+
+#endif /* FIRM_STATISTICS */
+
+#endif /* _BESTAT_H_ */