99953652ac8924c8a35fd8a4082623533ee620c3
[libfirm] / ir / ir / ircons_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/ircons_t.h
4  * Purpose:     Various irnode constructors.  Automatic construction
5  *              of SSA representation.
6  * Author:      Martin Trapp, Christian Schaefer
7  * Modified by: Michael Beck
8  * Created:
9  * CVS-ID:      $Id$
10  * Copyright:   (c) 1998-2003 Universität Karlsruhe
11  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
12  */
13 #ifndef _IRCONS_T_H_
14 #define _IRCONS_T_H_
15
16 #include "ircons.h"
17 # include "irgraph_t.h"
18
19 /**
20  * Initializes the graph construction.
21  *
22  * @param func  callback that is called if a uninitialized
23  *              variable is detected
24  *
25  * @see uninitialized_local_variable_func_t
26  */
27 void init_cons(uninitialized_local_variable_func_t *func);
28
29 /* inline functions */
30
31 static INLINE ir_node *
32 _new_d_Bad(void) {
33   return current_ir_graph->anchors[anchor_bad];
34 }
35
36 static INLINE ir_node *
37 _new_d_NoMem(void) {
38   return current_ir_graph->anchors[anchor_no_mem];
39 }
40
41
42 #define new_d_Bad()               _new_d_Bad()
43 #define new_d_NoMem()             _new_d_NoMem()
44
45 #endif /* _IRCONS_T_H_ */