fixed some minor bugs
[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 #undef COPYOPT_STAT
11
12 #ifdef COPYOPT_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_cls(be_chordal_env_t *chordal_env);
21 void copystat_add_max_costs(int costs);
22 void copystat_add_inevit_costs(int costs);
23 void copystat_add_init_costs(int costs);
24 void copystat_add_heur_costs(int costs);
25 void copystat_add_ilp_5_sec_costs(int costs);
26 void copystat_add_ilp_30_sec_costs(int costs);
27 void copystat_add_opt_costs(int costs);
28 void copystat_add_heur_time(int time);
29 void copystat_add_ilp_time(int time);
30 void copystat_add_ilp_vars(int vars);
31 void copystat_add_ilp_csts(int csts);
32 void copystat_add_ilp_iter(int iters);
33 void copystat_dump(ir_graph *irg);
34 void copystat_dump_pretty(ir_graph *irg);
35
36 /**
37  * Compares different solutions of the same problem
38  */
39 void co_compare_solvers(be_chordal_env_t *chordal_env);
40
41 #else /* COPYOPT_STAT */
42
43 #define copystat_init();
44 #define copystat_reset();
45 #define copystat_collect_cls(env);
46 #define copystat_add_max_costs(costs);
47 #define copystat_add_inevit_costs(costs);
48 #define copystat_add_init_costs(costs);
49 #define copystat_add_heur_costs(costs);
50 #define copystat_add_ilp_5_sec_costs(costs);
51 #define copystat_add_ilp_30_sec_costs(costs);
52 #define copystat_add_opt_costs(costs);
53 #define copystat_add_heur_time(time);
54 #define copystat_add_ilp_time(time);
55 #define copystat_add_ilp_vars(vars);
56 #define copystat_add_ilp_csts(csts);
57 #define copystat_add_ilp_iter(iters);
58 #define copystat_dump(irg);
59 #define copystat_dump(irg);
60 #define copystat_dump_pretty(irg);
61
62 #endif /* COPYOPT_STAT */
63
64 #endif /* _BECOPYSTAT_H */