Moved to new lpp library
[libfirm] / ir / be / becopystat.h
index c5346e2..3d6ddc4 100644 (file)
 
 #define MAX_ARITY 10
 #define MAX_CLS_SIZE 10
+#define MAX_CLS_PHIS 10
 #define MAX_PHASE 2
 
 /**
- * For an explanation of these values see phi_copystat_dump_pretty
+ * For an explanation of these values see the code of copystat_dump_pretty
  */
 enum vals_t {
        I_ALL_NODES = 0,
@@ -43,6 +44,8 @@ enum vals_t {
        I_CLS_IF_CNT,           /* number of actual interferences in all classes */
        I_CLS_SIZE_S,
        I_CLS_SIZE_E = I_CLS_SIZE_S+MAX_CLS_SIZE,
+       I_CLS_PHIS_S,
+       I_CLS_PHIS_E = I_CLS_PHIS_S+MAX_CLS_PHIS,
 
        /* ilp values */
        I_ILP_TIME,                     /* !external set! solving time in seconds */
@@ -50,10 +53,10 @@ enum vals_t {
 
        /* copy instructions */
        I_COPIES_MAX,           /* max number of copies possible */
-       I_COPIES_IF,            /* number of copies inevitable due to root-arg-interf */
        I_COPIES_INIT,          /* !external set! number of copies in initial allocation */
        I_COPIES_HEUR,          /* !external set! number of copies after heuristic */
        I_COPIES_OPT,           /* !external set! number of copies after ilp */
+       I_COPIES_IF,            /* number of copies inevitable due to root-arg-interf */
 
        ASIZE
 };
@@ -65,7 +68,7 @@ int curr_vals[ASIZE];
 
 void copystat_init(void);
 void copystat_reset(void);
-void copystat_collect_irg(ir_graph *irg);
+void copystat_collect_irg(ir_graph *irg, arch_env_t *arch_env);
 void copystat_collect_cls(be_chordal_env_t *chordal_env);
 void copystat_dump(ir_graph *irg);
 void copystat_dump_pretty(ir_graph *irg);
@@ -74,7 +77,7 @@ void copystat_dump_pretty(ir_graph *irg);
 
 #define copy_copystat_init();
 #define        copystat_reset();
-#define copystat_collect_irg(irg);
+#define copystat_collect_irg(irg, arch_env);
 #define copystat_collect_cls(env);
 #define copystat_dump(irg);
 #define copystat_dump(irg);