*** 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 # include <stdio.h>
9 # include "ident_t.h"
10 # include "firm.h"
11 # include "mangle.h"
12 # include "xp_help.h"
13 # include "irnode_t.h"
14 # include "tv_t.h"
15
16 void
17 init_firm (void)
18 {
19   /* register the character 'I' as variable for ident outputs. */
20   xprintf_register ('I', ident_print);
21   /* register the character 'v' as variable for tarval outputs. */
22   xprintf_register ('v', tarval_print);
23   /* register the character 'R' as variable for ir node outputs. */
24   xprintf_register ('R', ir_node_print);
25   /* initialize all ident stuff */
26   id_init ();
27   /* create an obstack and put alle tarvals in a pdeq */
28   tarval_init_1 ();
29   /* initialize all modes an ir node can consist of */
30   init_mode ();
31   /* initialize tarvals, and floating point arithmetic */
32   tarval_init_2 ();
33   /* kind of obstack initialization */
34   init_mangle ();
35   /* initalize all op codes an irnode can consist of */
36   init_op ();
37   /* called once for each run of this library, empty at this moment!!! */
38   init_cons ();
39   /* Builds a construct allowing to access all information to be constructed
40      later. */
41
42   init_irprog ();
43 }