amd64: Added Load and FrameAddr transformation. And fixed some corruption bugs w...
[libfirm] / include / libfirm / ircgcons.h
1 /*
2  * Copyright (C) 1995-2008 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  * @file
22  * @brief   Construction and removal of interprocedural representation
23  *          (explicit interprocedural dependencies).
24  * @author  Hubert Schmid
25  * @date    09.06.2002
26  * @version $Id$
27  */
28 #ifndef FIRM_IR_IRCGCONS_H
29 #define FIRM_IR_IRCGCONS_H
30
31 #ifdef INTERPROCEDURAL_VIEW
32
33 #include "firm_types.h"
34 #include "begin.h"
35
36 /** Return the current state of the interprocedural view. */
37 FIRM_API ip_view_state get_irp_ip_view_state(void);
38 /** Set the state of the interprocedural view to invalid. */
39 FIRM_API void set_irp_ip_view_invalid(void);
40
41 /** Construction of the interprocedural view.
42  *
43  * Construction of the interprocedural view.  A prior analysis must have set
44  * all possible callees in the corresponding fields of Call nodes.  Sets
45  * ip_view_valid in irp.
46  *
47  * @arg free_methods_arr: An array of all free methods, i.e., methods that
48  *                        are external visible.  These methods get an 'Unknown'
49  *                        caller.
50  * @arg arr_len           The number of free methods. */
51 FIRM_API void cg_construct(int arr_len, ir_entity *free_methods_arr[]);
52
53
54 /** Deconstruction of the interprocedural view.  Reduces memory consumption of
55     the ir. Sets ip_view_no in irp. */
56 FIRM_API void cg_destruct(void);
57
58 #include "end.h"
59
60 #endif
61
62 #endif