first statistic hooks added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Apr 2004 13:10:11 +0000 (13:10 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Apr 2004 13:10:11 +0000 (13:10 +0000)
[r2681]

ir/ir/Makefile.in
ir/ir/irgmod.c
ir/ir/irnode.c
ir/ir/irop.c

index d72e8ed..bb336a4 100644 (file)
@@ -32,7 +32,8 @@ include $(topdir)/MakeRules
 
 CPPFLAGS +=    -I$(top_srcdir)/ir/adt   -I$(top_srcdir)/ir/ir  -I$(top_srcdir)/ir/common  \
                -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr  -I$(top_srcdir)/ir/tv \
-               -I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st
+               -I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
+               -I$(top_srcdir)/ir/stat
 
 include $(top_srcdir)/MakeTargets
 
index a46d618..c461222 100644 (file)
@@ -102,9 +102,10 @@ void collect_phiprojs(ir_graph *irg) {
 /*  Functionality for part_block                                      */
 /*--------------------------------------------------------------------*/
 
-/* Moves node and all predecessors of node from from_bl to to_bl.
-   Does not move predecessors of Phi nodes (or block nodes). */
-
+/**
+ * Moves node and all predecessors of node from from_bl to to_bl.
+ * Does not move predecessors of Phi nodes (or block nodes).
+ */
 static void move (ir_node *node, ir_node *from_bl, ir_node *to_bl) {
   int i;
   ir_node *proj, *pred;
index d8058cb..cfeb23b 100644 (file)
 #include "irdump.h"
 #include "irflag_t.h"
 #include "irop_t.h"
-
 #include "irprog_t.h"
 
+#include "firmstat.h"
+
 /* some constants fixing the positions of nodes predecessors
    in the in array */
 #define CALL_PARAM_OFFSET 2
@@ -135,6 +136,8 @@ new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mo
   res->node_nr = get_irp_new_node_nr();
 #endif
 
+  stat_new_node(res);
+
   return res;
 }
 
index a240074..0c08337 100644 (file)
@@ -18,6 +18,7 @@
 
 # include "irop_t.h"
 # include "irnode_t.h"
+# include "firmstat.h"
 
 # include "xmalloc.h"
 
@@ -97,10 +98,12 @@ new_ir_op(opcode code, const char *name, op_pinned p, unsigned flags, op_arity o
   res->op_index  = op_index;
 
   firm_set_default_operations(res);
+  stat_new_ir_op(res);
   return res;
 }
 
 void free_ir_op(ir_op *code) {
+  stat_free_ir_op(code);
   free(code);
 }