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