fixed bugs in statistic. adapted to critical edges.
[libfirm] / ir / be / becopystat.h
1 /**
2  * Author:      Daniel Grund
3  * Date:                11.04.2005
4  * Copyright:   (c) Universitaet Karlsruhe
5  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
6  */
7 #ifndef _BECOPYSTAT_H
8 #define _BECOPYSTAT_H
9
10 #define DO_STAT
11
12 #ifdef DO_STAT
13
14 #include "irgraph.h"
15 #include "bearch.h"
16 #include "bechordal_t.h"
17
18 void copystat_init(void);
19 void copystat_reset(void);
20 void copystat_collect_irg(ir_graph *irg, arch_env_t *arch_env);
21 void copystat_collect_cls(be_chordal_env_t *chordal_env);
22 void copystat_add_max_costs(int costs);
23 void copystat_add_inevit_costs(int costs);
24 void copystat_add_init_costs(int costs);
25 void copystat_add_heur_costs(int costs);
26 void copystat_add_opt_costs(int costs);
27 void copystat_add_ilp_time(int time);
28 void copystat_add_ilp_iter(int iters);
29 void copystat_dump(ir_graph *irg);
30 void copystat_dump_pretty(ir_graph *irg);
31
32 #else /* DO_STAT */
33
34 #define copy_copystat_init();
35 #define copystat_reset();
36 #define copystat_collect_irg(irg, arch_env);
37 #define copystat_collect_cls(env);
38 #define copystat_add_max_costs(costs);
39 #define copystat_add_inevit_costs(costs);
40 #define copystat_add_init_costs(costs);
41 #define copystat_add_heur_costs(costs);
42 #define copystat_add_opt_costs(costs);
43 #define copystat_add_ilp_time(int time);
44 #define copystat_add_ilp_iter(int iters);
45 #define copystat_dump(irg);
46 #define copystat_dump(irg);
47 #define copystat_dump_pretty(irg);
48
49 #endif /* DO_STAT */
50
51 #endif /* _BECOPYSTAT_H */