-#include "benode_t.h"
-
-#ifdef FIRM_STATISTICS
-
-typedef struct _be_stat_irg_t {
- ir_graph *irg; /**< the irg, the statistic is about */
- pset *phases; /**< node statistics for each phase */
- struct obstack obst; /**< the obstack containing the information */
- const arch_env_t *arch_env; /**< the current arch env */
-} be_stat_irg_t;
-
-typedef struct _be_stat_phase_t {
- const arch_env_t *arch_env; /**< the current arch env */
- const char *phase; /**< the name of the phase the statistic is about */
- unsigned long num_nodes; /**< overall number of reachable nodes in the irg */
- unsigned long num_data; /**< number of data nodes ((mode_datab && ! Proj && ! Phi) || mode_T) */
- unsigned long num_proj; /**< number of Projs */
- unsigned long num_phi; /**< number of Phis */
- unsigned long num_load; /**< number of Loads */
- unsigned long num_store; /**< number of Stores */
- unsigned long num_spill; /**< number of Spills */
- unsigned long num_reload; /**< number of Reloads */
-} be_stat_phase_t;
-
-static set *be_stat_data = NULL;
-
-static int cmp_stat_phase(const void *a, const void *b) {
- const be_stat_phase_t *p1 = a;
- const be_stat_phase_t *p2 = b;
-
- return p1->phase != p2->phase;
-}