*** empty log message ***
[libfirm] / ir / ir / irflag.c
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 ** All rights reserved.
3 **
4 ** Authors: Christian Schaefer
5 **
6 ** irflag --- optimization flags
7 */
8
9 # include "irflag.h"
10
11 /* 0 - don't do this optimization
12    1 - lets see, if there is a better graph */
13 int opt_cse = 1;
14 int opt_constant_folding = 1;
15 int opt_dead_node_elimination = 0;
16 int optimized = 1;
17
18 /* set the flags with set_flagname, get the flag with get_flagname */
19
20 inline void
21 set_opt_cse (int value)
22 {
23   opt_cse = value;
24 }
25
26 inline int
27 get_opt_cse (void)
28 {
29   return opt_cse;
30 }
31
32 inline void
33 set_opt_constant_folding (int value)
34 {
35   opt_constant_folding=value;
36 }
37
38 inline int
39 get_opt_constant_folding (void)
40 {
41   return opt_constant_folding;
42 }
43
44 inline void
45 set_opt_dead_node_elimination (int value)
46 {
47   opt_dead_node_elimination = value;
48 }
49
50 inline int
51 get_opt_dead_node_elimination (void)
52 {
53   return opt_dead_node_elimination;
54 }
55
56 inline void
57 set_optimize (int value)
58 {
59   optimized = value;
60 }
61
62 inline int
63 get_optimize (void)
64 {
65   return optimized;
66 }