15 #define MAX_CLS_SIZE 10
19 * For an explanation of these values see phi_stat_dump_pretty
26 I_PHI_CNT, /* number of phi nodes */
27 I_PHI_ARG_CNT, /* number of arguments of phis */
28 I_PHI_ARG_SELF, /* number of arguments of phis being the phi itself */
29 I_PHI_ARG_CONST, /* number of arguments of phis being consts */
30 I_PHI_ARG_PRED, /* ... being defined in a cf-pred */
31 I_PHI_ARG_GLOB, /* ... being defined elsewhere */
33 I_PHI_ARITY_E = I_PHI_ARITY_S+MAX_ARITY,
36 I_CLS_CNT, /* number of phi classes */
37 I_CLS_IF_FREE, /* number of pc having no interference */
38 I_CLS_IF_MAX, /* number of possible interferences in all classes */
39 I_CLS_IF_CNT, /* number of actual interferences in all classes */
41 I_CLS_SIZE_E = I_CLS_SIZE_S+MAX_CLS_SIZE,
44 I_CPY_CNT, /* number of copynodes */
47 I_ILP_TIME, /* !external set! solving time in 10th seconds */
48 I_ILP_ITER, /* !external set! number of simplex iterations */
50 /* copy instructions */
51 I_COPIES_MAX, /* max number of copies possible */
52 I_COPIES_INIT, /* !external set! number of copies in initial allocation */
53 I_COPIES_HEUR, /* !external set! number of copies after heuristic */
54 I_COPIES_OPT, /* !external set! number of copies after ilp */
55 I_COPIES_LB, /* !external set! the lower bound used for number of copies */
56 I_COPIES_IF, /* number of copies inevitable due to root-arg-interf */
62 * Holds current values. Values are added till next phi_stat_reset
69 * Resets the array holding the data
71 void stat_reset(void);
74 * Collect common irg data
76 void stat_collect_irg(ir_graph *irg);
79 * Dumps the current contents of the internal values to a file.
81 void stat_dump(ir_graph *irg);
84 * Dumps the current contents of the values array and annotations to a file.
86 void stat_dump_pretty(ir_graph *irg);