Added Goetz' proposal to replace loads of constant entities by their constants
[libfirm] / ir / ana / rta.h
1 /* -*- c -*- */
2
3 #ifndef _RTA_H_
4 #define _RTA_H_
5
6 # include "entity.h"
7
8 /**
9  * Initialise the RTA data structures and perform RTA.
10  *
11  * @param do_verbose If == 1, print statistics, if > 1, chatter about every detail
12  */
13 void rta_init(int do_verbose);
14
15 /**
16  * Delete all graphs that have been found to be dead.
17  */
18 void rta_delete_dead_graphs (void);
19
20 /** Clean up our data structures.
21  * Finishes the RTA.
22  */
23 void rta_cleanup(void);
24
25 /** Returns non-zero if the given class is alive. */
26 int rta_is_alive_class(type *clazz);
27
28 /** Returns non-zero if the given graph is alive. */
29 int rta_is_alive_graph(ir_graph *graph);
30
31 /** report for all graphs and types whether they are alive */
32 void rta_report (void);
33
34 #endif /* not defined _RTA_H_ */
35
36 /*
37  * $Log$
38  * Revision 1.12  2004/10/20 14:59:27  liekweg
39  * Removed ecg
40  *
41  * Revision 1.11  2004/10/18 12:47:46  liekweg
42  * minor fix
43  *
44  * Revision 1.10  2004/09/24 13:59:04  beck
45  * fixed doxygen comments, removed initialization for description entities
46  *
47  * Revision 1.9  2004/08/19 16:51:02  goetz
48  * fixed some errors, pushed closer to inteded firm semantics
49  *
50  * Revision 1.8  2004/06/18 17:34:31  liekweg
51  * Removed field checks --flo
52  *
53  * Revision 1.7  2004/06/18 13:12:43  liekweg
54  * final bug fix (calls via consts)
55  *
56  * Revision 1.6  2004/06/17 14:21:14  liekweg
57  * major bugfix
58  *
59  * Revision 1.5  2004/06/17 08:33:01  liekweg
60  * Added comments; added remove_irg
61  *
62  * Revision 1.4  2004/06/15 11:44:54  beck
63  * New inlining schema implemented:
64  *
65  * small functions that should be inlined in libFirm are implemented in _t.h files
66  * with a __ prefix.
67  * Preprocessor magic is used to automatically inline these functions whenever a _t.h
68  * file is included instead of a .h file.
69  * Note that this magic did not work outside libFirm without accessing _t.h files.
70  *
71  * Revision 1.3  2004/06/13 15:03:45  liekweg
72  * RTA auf Iterative RTA aufgebohrt --flo
73  *
74  * Revision 1.2  2004/06/12 17:09:46  liekweg
75  * RTA works, outedges breaks.  "Yay." --flo
76  *
77  * Revision 1.1  2004/06/11 18:24:18  liekweg
78  * Added RTA --flo
79  *
80  */