2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
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.
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.
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
22 * @brief Construction and removal of interprocedural representation
23 * (explicit interprocedural dependencies).
24 * @author Hubert Schmid
28 #ifndef FIRM_IR_IRCGCONS_H
29 #define FIRM_IR_IRCGCONS_H
31 #include "firm_config.h"
33 #ifdef INTERPROCEDURAL_VIEW
35 #include "firm_types.h"
37 /** Return the current state of the interprocedural view. */
38 ip_view_state get_irp_ip_view_state(void);
39 /** Set the state of the interprocedural view to invalid. */
40 void set_irp_ip_view_invalid(void);
42 /** Construction of the interprocedural view.
44 * Construction of the interprocedural view. A prior analysis must have set
45 * all possible callees in the corresponding fields of Call nodes. Sets
46 * ip_view_valid in irp.
48 * @arg free_methods_arr: An array of all free methods, i.e., methods that
49 * are external visible. These methods get an 'Unknown'
51 * @arg arr_len The number of free methods. */
52 void cg_construct(int arr_len, ir_entity *free_methods_arr[]);
55 /** Deconstruction of the interprocedural view. Reduces memory consumption of
56 the ir. Sets ip_view_no in irp. */
57 void cg_destruct(void);