bfd602166e0fe269e7f5052bfef5bd64ea019ed6
[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  @see default_initialize_local_variable_func_t
23  */
24 void init_cons (default_initialize_local_variable_func_t *func);
25
26 /* inline functions */
27
28 static INLINE ir_node *
29 __new_d_Bad(void) {
30   return current_ir_graph->bad;
31 }
32
33 static INLINE ir_node *
34 __new_d_NoMem(void) {
35   return current_ir_graph->no_mem;
36 }
37
38
39 #define new_d_Bad()               __new_d_Bad()
40 #define new_d_NoMem()             __new_d_NoMem()
41
42 #endif /* _IRCONS_T_H_ */