Fixes
[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 COPYOPT_STAT
11
12 #ifdef COPYOPT_STAT
13
14 #define DO_HEUR
15 #define DO_ILP1
16 #define DO_ILP2
17
18 #include "irgraph.h"
19 #include "bearch.h"
20 #include "bechordal_t.h"
21
22 void copystat_init(void);
23 void copystat_reset(void);
24 void copystat_collect_cls(be_chordal_env_t *chordal_env);
25 void copystat_add_max_costs(int costs);
26 void copystat_add_inevit_costs(int costs);
27 void copystat_add_init_costs(int costs);
28 void copystat_add_heur_costs(int costs);
29 void copystat_add_ilp_5_sec_costs(int costs);
30 void copystat_add_ilp_30_sec_costs(int costs);
31 void copystat_add_opt_costs(int costs);
32 void copystat_add_heur_time(int time);
33 void copystat_add_ilp_time(int time);
34 void copystat_add_ilp_vars(int vars);
35 void copystat_add_ilp_csts(int csts);
36 void copystat_add_ilp_iter(int iters);
37 void copystat_dump(ir_graph *irg);
38 void copystat_dump_pretty(ir_graph *irg);
39
40 /**
41  * Compares different solutions of the same problem
42  */
43 void co_compare_solvers(be_chordal_env_t *chordal_env);
44
45 #else /* COPYOPT_STAT */
46
47 #define copystat_init();
48 #define copystat_reset();
49 #define copystat_collect_cls(env);
50 #define copystat_add_max_costs(costs);
51 #define copystat_add_inevit_costs(costs);
52 #define copystat_add_init_costs(costs);
53 #define copystat_add_heur_costs(costs);
54 #define copystat_add_ilp_5_sec_costs(costs);
55 #define copystat_add_ilp_30_sec_costs(costs);
56 #define copystat_add_opt_costs(costs);
57 #define copystat_add_heur_time(time);
58 #define copystat_add_ilp_time(time);
59 #define copystat_add_ilp_vars(vars);
60 #define copystat_add_ilp_csts(csts);
61 #define copystat_add_ilp_iter(iters);
62 #define copystat_dump(irg);
63 #define copystat_dump(irg);
64 #define copystat_dump_pretty(irg);
65
66 #endif /* COPYOPT_STAT */
67
68 #endif /* _BECOPYSTAT_H */