15 #define MAX_CLS_SIZE 10
18 * For an explanation of these values see phi_stat_dump_pretty
24 I_PHI_CNT, /* number of phi nodes */
25 I_PHI_ARG_CNT, /* number of arguments of phis */
26 I_PHI_ARG_SELF, /* number of arguments of phis being the phi itself */
27 I_PHI_ARG_CONST, /* number of arguments of phis being consts */
28 I_PHI_ARG_PRED, /* ... being defined in a cf-pred */
29 I_PHI_ARG_GLOB, /* ... being defined elsewhere */
31 I_PHI_ARITY_E = I_PHI_ARITY_S+MAX_ARITY,
33 I_CLS_CNT, /* number of phi classes */
34 I_CLS_IF_FREE, /* number of pc having no interference */
35 I_CLS_IF_MAX, /* number of possible interferences in all classes */
36 I_CLS_IF_CNT, /* number of actual interferences in all classes */
38 I_CLS_SIZE_E = I_CLS_SIZE_S+MAX_CLS_SIZE,
40 I_COPIES_MAX, /* max number of copies possible */
41 I_COPIES_INIT, /* !external set! number of copies in initial allocation */
42 I_COPIES_HEUR, /* !external set! number of copies after heuristic */
43 I_COPIES_OPT, /* !external set! number of copies after ilp */
44 I_COPIES_LB, /* !external set! the lower bound used for number of copies */
45 I_COPIES_IF, /* number of copies inevitable due to root-arg-interf */
51 * Holds current values. Values are added till next phi_stat_reset
58 * Resets the array holding the data
60 void stat_reset(void);
63 * Collect common irg data
65 void stat_collect_irg(ir_graph *irg);
68 * Dumps the current contents of the internal values to a file.
70 void stat_dump(ir_graph *irg);
73 * Dumps the current contents of the values array and annotations to a file.
75 void stat_dump_pretty(ir_graph *irg);