Added copyright headers
[libfirm] / ir / common / firm.c
1 /*
2  * Project:     libFIRM
3  * File name:   ir/common/firm.c
4  * Purpose:     Central firm functionality.
5  * Author:      Martin Trapp, Christian Schaefer
6  * Modified by: Goetz Lindenmaier
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1998-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 #ifdef HAVE_CONFIG_H
14 # include <config.h>
15 #endif
16
17 # include <stdio.h>
18 # include "ident_t.h"
19 # include "firm.h"
20 # include "mangle.h"
21 # include "tv_t.h"
22 /* init functions are not public */
23 # include "tpop_t.h"
24 # include "irnode_t.h"
25 # include "irmode_t.h"
26 # include "irgraph_t.h"
27 # include "type_t.h"
28
29 void
30 init_firm (default_initialize_local_variable_func_t *func)
31 {
32   /* initialize all ident stuff */
33   id_init ();
34   /* create the type kinds. */
35   init_tpop ();
36   /* create an obstack and put all tarvals in a pdeq */
37   init_tarval_1 ();
38   /* initialize all modes an ir node can consist of */
39   init_mode ();
40   /* initialize tarvals, and floating point arithmetic */
41   init_tarval_2 ();
42   /* init graph construction */
43   init_irgraph();
44   /* kind of obstack initialization */
45   init_mangle ();
46   /* initalize all op codes an irnode can consist of */
47   init_op ();
48   /* called once for each run of this library */
49   init_cons (func);
50   /* Builds a construct allowing to access all information to be constructed
51      later. */
52   init_irprog ();
53   /* Constructs some idents needed. */
54   init_type();
55 }