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