2 * Copyright (C) 1995-2007 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
24 * File name: ir/external/pseudo_irg.h
25 * Purpose: interface to pseudo irgs
26 * Author: G"otz Lindenmaier
27 * Modified by: Boris Boesler
30 * Copyright: (c) 1999-2004 Universität Karlsruhe
33 #ifndef _FIRM_IR_PSEUDO_IRG_H_
34 #define _FIRM_IR_PSEUDO_IRG_H_
36 #include "firm_types.h"
38 /** Create a new ir graph to build a pseudo representation of a procedure.
40 * The pseudo representation can only be used for analyses. It may not be
41 * optimized. Pseudo graphs are kept in a separate graph list in irprog.
43 ir_graph *new_pseudo_ir_graph(ir_entity *ent, int n_loc);
45 /** Returns non-zero ir ir_graph is pseudo graph.
46 * Is irg a pseudo graph for analysis? */
47 int is_pseudo_ir_graph(ir_graph *irg);
49 /** Returns the number of pseudo graphs in the program. */
50 int get_irp_n_pseudo_irgs(void);
52 /** Returns the pos'th pseudo graph in the program. */
53 ir_graph *get_irp_pseudo_irg(int pos);
56 /** If set, get_irp_n_irgs() and get_irp_irg() behave as if all pseudo
57 graphs are in the irg list. If not set, get_entity_irg() returns
58 NULL if the entity refers to a pseudo irg. */
59 void set_visit_pseudo_irgs(int x);
60 int get_visit_pseudo_irgs(void);
62 #endif /* _FIRM_IR_PSEUDO_IRG_H_ */