Updated header
[libfirm] / ir / ir / ircons_t.h
1 /*
2  * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19
20 /*
21  * Project:     libFIRM
22  * File name:   ir/ir/ircons_t.h
23  * Purpose:     Various irnode constructors.  Automatic construction
24  *              of SSA representation.
25  * Author:      Martin Trapp, Christian Schaefer
26  * Modified by: Michael Beck
27  * Created:
28  * CVS-ID:      $Id$
29  * Copyright:   (c) 1998-2003 Universität Karlsruhe
30  */
31 #ifndef _IRCONS_T_H_
32 #define _IRCONS_T_H_
33
34 #include "ircons.h"
35 # include "irgraph_t.h"
36
37 /**
38  * Initializes the graph construction.
39  *
40  * @param func  callback that is called if a uninitialized
41  *              variable is detected
42  *
43  * @see uninitialized_local_variable_func_t
44  */
45 void init_cons(uninitialized_local_variable_func_t *func);
46
47 /* inline functions */
48
49 static INLINE ir_node *
50 _new_d_Bad(void) {
51   return current_ir_graph->anchors[anchor_bad];
52 }
53
54 static INLINE ir_node *
55 _new_d_NoMem(void) {
56   return current_ir_graph->anchors[anchor_no_mem];
57 }
58
59
60 #define new_d_Bad()               _new_d_Bad()
61 #define new_d_NoMem()             _new_d_NoMem()
62
63 #endif /* _IRCONS_T_H_ */