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