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