Added FuncCall op
[libfirm] / ir / ir / irprog_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irprog_t.h
4  * Purpose:     Entry point to the representation of a whole program 0-- private header.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:     2000
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 2000-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 /**
14  * @file irprog_t.h
15  */
16
17 # ifndef _IRPROG_T_H_
18 # define _IRPROG_T_H_
19
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23
24 #include "irprog.h"
25 #include "firm_common_t.h"
26
27
28 /** ir_prog */
29 struct ir_prog {
30   firm_kind kind;
31   ir_graph  *main_irg;            /**< entry point to the compiled program
32                      or a list, in case we compile a library or the like? */
33   ir_graph **graphs;              /**< all graphs in the ir */
34   type      *glob_type;           /**< global type.  Must be a class as it can
35                                      have fields and procedures.  */
36   type     **types;               /**< all types in the ir */
37   ir_graph  *const_code_irg;      /**< This ir graph gives the proper environment
38                                      to allocate nodes the represent values
39                                      of constant entities. It is not meant as
40                                      a procedure.  */
41   ident     *name;
42   /*struct obstack *obst;          * @@@ Should we place all types and
43                                      entities on an obstack, too? */
44
45 #ifdef DEBUG_libfirm
46   long max_node_nr;                /**< to generate unique numbers for nodes. */
47 #endif
48 };
49
50 INLINE void remove_irp_type_from_list (type *typ);
51
52 #ifdef DEBUG_libfirm
53 /** Returns a new, unique number to number nodes or the like. */
54 int get_irp_new_node_nr(void);
55 #endif
56
57 #endif /* ifndef _IRPROG_T_H_ */