From: Michael Beck Date: Wed, 26 May 2004 13:02:08 +0000 (+0000) Subject: doxygen comments fixed, X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ba602da377352fc3929781498c46520de90ff238;p=libfirm doxygen comments fixed, added statistic function hook for new graph [r2944] --- diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index edf604579..97d9af96e 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -24,6 +24,7 @@ # include "irgmod.h" # include "mangle.h" # include "irouts.h" +# include "firmstat.h" ir_graph *current_ir_graph; INLINE ir_graph *get_current_ir_graph(void) { @@ -74,11 +75,13 @@ new_ir_graph (entity *ent, int n_loc) memset(res, 0, sizeof (ir_graph)); res->kind=k_ir_graph; + /* inform statistics here, as blocks will be already build on this graph */ + stat_new_graph(res); + current_ir_graph = res; add_irp_irg(res); /* remember this graph global. */ -/** - * initialized for each graph. **/ + /*-- initialized for each graph. --*/ #if PRECISE_EXC_CONTEXT res->n_loc = n_loc + 1 + 1; /* number of local variables that are never dereferenced in this graph plus one for @@ -114,17 +117,16 @@ new_ir_graph (entity *ent, int n_loc) res->typeinfo_state = irg_typeinfo_none; res->loopinfo_state = loopinfo_none; - /** Type information for the procedure of the graph **/ + /*-- Type information for the procedure of the graph --*/ res->ent = ent; set_entity_irg(ent, res); -/** - contain "inner" methods as in Pascal. **/ + /*-- contain "inner" methods as in Pascal. --*/ res->frame_type = new_type_class(mangle(get_entity_ident(ent), frame_type_suffix)); /* Remove type from type list. Must be treated differently than other types. */ remove_irp_type_from_list(res->frame_type); - /** Nodes needed in every graph **/ + /*-- Nodes needed in every graph --*/ res->end_block = new_immBlock (); res->end = new_End (); res->end_reg = res->end; @@ -154,10 +156,11 @@ new_ir_graph (entity *ent, int n_loc) */ mature_block (res->current_block); - /** Make a block to start with **/ + /*-- Make a block to start with --*/ first_block = new_immBlock (); add_in_edge (first_block, projX); + return res; }