*** empty log message ***
[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 "irnode_t.h"
20 # include "tv_t.h"
21 # include "tpop_t.h"
22
23 void
24 init_firm (void)
25 {
26   /* register the character 'I' as variable for ident outputs. */
27   xprintf_register ('I', ident_print);
28   /* register the character 'v' as variable for tarval outputs. */
29   xprintf_register ('v', tarval_print);
30   /* register the character 'R' as variable for ir node outputs. */
31   xprintf_register ('R', ir_node_print);
32
33   /* initialize all ident stuff */
34   id_init ();
35   /* create the type kinds. */
36   init_tpop ();
37   /* create an obstack and put all tarvals in a pdeq */
38   tarval_init_1 ();
39   /* initialize all modes an ir node can consist of */
40   init_mode ();
41   /* initialize tarvals, and floating point arithmetic */
42   tarval_init_2 ();
43   /* kind of obstack initialization */
44   init_mangle ();
45   /* initalize all op codes an irnode can consist of */
46   init_op ();
47   /* called once for each run of this library, empty at this moment!!! */
48   init_cons ();
49   /* Builds a construct allowing to access all information to be constructed
50      later. */
51   init_irprog ();
52 }