X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph_t.h;h=ef5c9c77bbc699cb0af673b715992abbb3f48df7;hb=36332e717eebd9b98603a99ea24e390a1d2aa3be;hp=9fc51f38a9a6ecb8b5cf8efea6a48a6d704154c7;hpb=99b96354f30cc378356372557e409a5eb63edaf1;p=libfirm diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 9fc51f38a..ef5c9c77b 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -47,25 +47,44 @@ #define FRAME_TP_SUFFIX "frame_tp" /** - * Initializes the graph construction module + * Initializes the graph construction module. */ void firm_init_irgraph(void); -/* Internal constructor that does not add to irp_irgs or the like. */ -ir_graph *new_r_ir_graph (ir_entity *ent, int n_loc); +/** + * Set the number of locals for a given graph. + * + * @param irg the graph + * @param n_loc number of locals + */ +void irg_set_nloc(ir_graph *res, int n_loc); + +/** + * Internal constructor that does not add to irp_irgs or the like. + */ +ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc); -/** Make a rudimentary ir graph for the constant code. - Must look like a correct irg, spare everything else. */ +/** + * Make a rudimentary ir graph for the constant code. + * Must look like a correct irg, spare everything else. + */ ir_graph *new_const_code_irg(void); +/** + * Create a new graph that is a copy of a given one. + * Uses the link fields of the original graphs. + * + * @param irg The graph that must be copied. + */ +ir_graph *create_irg_copy(ir_graph *irg); + /** * Set the op_pin_state_pinned state of a graph. * * @param irg the IR graph * @param p new pin state */ -INLINE void -set_irg_pinned (ir_graph *irg, op_pin_state p); +void set_irg_pinned(ir_graph *irg, op_pin_state p); /** Returns the obstack associated with the graph. */ struct obstack *get_irg_obstack(const ir_graph *irg);