Addded method to replace in array os a node in irnode
[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      *glob_type;           /* global type.  Must be a class as it can
13                                      have fields and procedures.  */
14   type     **types;               /* all types in the ir */
15   /*struct obstack *obst;          * @@@ Should we place all types and
16                                      entities on an obstack, too? */
17 #ifdef DEBUG_libfirm
18   long max_node_nr;                /* to generate unique numbers for nodes. */
19 #endif
20 };
21
22 #endif /* ifndef _IRPROG_T_H_ */