Bugfix in irdom.
[libfirm] / ir / ir / irprog_t.h
1
2 /* $Id$ */
3
4 # ifndef _IRPROG_T_H_
5 # define _IRPROG_T_H_
6
7 #include "irprog.h"
8
9 struct ir_prog {
10   firm_kind kind;
11   ir_graph  *main_irg;            /* entry point to the compiled program */
12                   /* or a list, in case we compile a library or the like? */
13   ir_graph **graphs;              /* all graphs in the ir */
14   type      *glob_type;           /* global type.  Must be a class as it can
15                                      have fields and procedures.  */
16   type     **types;               /* all types in the ir */
17   ir_graph  *const_code_irg;      /* This ir graph gives the proper environment
18                                      to allocate nodes the represent values
19                                      of constant entities. It is not meant as
20                                      a procedure.  */
21   /*struct obstack *obst;          * @@@ Should we place all types and
22                                      entities on an obstack, too? */
23
24 #ifdef DEBUG_libfirm
25   long max_node_nr;                /* to generate unique numbers for nodes. */
26 #endif
27 };
28
29 #endif /* ifndef _IRPROG_T_H_ */