*** empty log message ***
[libfirm] / ir / ir / irprog_t.h
1
2 # ifndef _IRPROG_T_H_
3 # define _IRPROG_T_H_
4
5 #include "irprog.h"
6
7 struct ir_prog {
8   firm_kind kind;
9   ir_graph *main_irg;              /* entry point to the compiled program */
10                   /* or a list, in case we compile a library or the like? */
11   ir_graph **graphs;               /* all graphs in the ir */
12   type_class *glob_type;           /* global type.  Class as it can have
13                                       fields and procedures.  Does this work?
14                                       Better name??? @@@ */
15   type **types;                    /* all types in the ir */
16   /*struct obstack *obst;           * @@@ Should we place all types and
17                                       entities on an obstack, too? */
18 #ifdef DEBUG_libfirm
19   long max_node_nr;                /* to generate unique numbers for nodes. */
20 #endif
21 };
22
23 #endif /* ifndef _IRPROG_T_H_ */