From: Matthias Braun Date: Fri, 1 Jun 2007 16:08:10 +0000 (+0000) Subject: move pseudo irg X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=17a68744924962debf2c959bba4f585c513b3963;p=libfirm move pseudo irg [r14247] --- diff --git a/include/libfirm/pseudo_irg.h b/include/libfirm/pseudo_irg.h new file mode 100644 index 000000000..3c3997380 --- /dev/null +++ b/include/libfirm/pseudo_irg.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief interface to pseudo irgs + * @author Goetz Lindenmaier, Boris Boesler + * @date Oktober 2004 + * @version $Id$ + */ +#ifndef FIRM_IR_PSEUDO_IRG_H +#define FIRM_IR_PSEUDO_IRG_H + +#include "firm_types.h" + +/** Create a new ir graph to build a pseudo representation of a procedure. + * + * The pseudo representation can only be used for analyses. It may not be + * optimized. Pseudo graphs are kept in a separate graph list in irprog. + */ +ir_graph *new_pseudo_ir_graph(ir_entity *ent, int n_loc); + +/** Returns non-zero ir ir_graph is pseudo graph. + * Is irg a pseudo graph for analysis? */ +int is_pseudo_ir_graph(ir_graph *irg); + +/** Returns the number of pseudo graphs in the program. */ +int get_irp_n_pseudo_irgs(void); + +/** Returns the pos'th pseudo graph in the program. */ +ir_graph *get_irp_pseudo_irg(int pos); + + +/** If set, get_irp_n_irgs() and get_irp_irg() behave as if all pseudo + graphs are in the irg list. If not set, get_entity_irg() returns + NULL if the entity refers to a pseudo irg. */ +void set_visit_pseudo_irgs(int x); +int get_visit_pseudo_irgs(void); + +#endif diff --git a/ir/ir/pseudo_irg.h b/ir/ir/pseudo_irg.h deleted file mode 100644 index 3c3997380..000000000 --- a/ir/ir/pseudo_irg.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. - * - * This file is part of libFirm. - * - * This file may be distributed and/or modified under the terms of the - * GNU General Public License version 2 as published by the Free Software - * Foundation and appearing in the file LICENSE.GPL included in the - * packaging of this file. - * - * Licensees holding valid libFirm Professional Edition licenses may use - * this file in accordance with the libFirm Commercial License. - * Agreement provided with the Software. - * - * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE - * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. - */ - -/** - * @file - * @brief interface to pseudo irgs - * @author Goetz Lindenmaier, Boris Boesler - * @date Oktober 2004 - * @version $Id$ - */ -#ifndef FIRM_IR_PSEUDO_IRG_H -#define FIRM_IR_PSEUDO_IRG_H - -#include "firm_types.h" - -/** Create a new ir graph to build a pseudo representation of a procedure. - * - * The pseudo representation can only be used for analyses. It may not be - * optimized. Pseudo graphs are kept in a separate graph list in irprog. - */ -ir_graph *new_pseudo_ir_graph(ir_entity *ent, int n_loc); - -/** Returns non-zero ir ir_graph is pseudo graph. - * Is irg a pseudo graph for analysis? */ -int is_pseudo_ir_graph(ir_graph *irg); - -/** Returns the number of pseudo graphs in the program. */ -int get_irp_n_pseudo_irgs(void); - -/** Returns the pos'th pseudo graph in the program. */ -ir_graph *get_irp_pseudo_irg(int pos); - - -/** If set, get_irp_n_irgs() and get_irp_irg() behave as if all pseudo - graphs are in the irg list. If not set, get_entity_irg() returns - NULL if the entity refers to a pseudo irg. */ -void set_visit_pseudo_irgs(int x); -int get_visit_pseudo_irgs(void); - -#endif