X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.c;h=00103f3c69c65685848c0bd5873e0ee073cfa86d;hb=88760903238a35c54111e97543db10cab6c25e1f;hp=90c37edae1c4c4c3b5148392000b7d945239d508;hpb=eb08138c6b80c169945568e4414f491a9bc20388;p=libfirm diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c index 90c37edae..00103f3c6 100644 --- a/ir/stat/pattern_dmp.c +++ b/ir/stat/pattern_dmp.c @@ -17,20 +17,18 @@ * PURPOSE. */ -/* - * Project: libFIRM - * File name: ir/ir/pattern_dmp.c - * Purpose: Statistics for Firm. - * Author: Michael Beck - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 2004 Universität Karlsruhe +/** + * @file + * @brief Statistics for Firm. Dumping patterns. + * @author Michael Beck + * @version $Id$ */ - #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef FIRM_STATISTICS + #include #ifdef HAVE_STDLIB_H # include @@ -177,6 +175,7 @@ static void vcg_dump_node(pattern_dumper_t *self, unsigned id, static void vcg_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, unsigned pos, unsigned mode_code) { vcg_private_t *priv = self->data; + (void) mode_code; if (priv->pattern_id > priv->max_pattern) return; @@ -233,6 +232,7 @@ static void stdout_dump_node(pattern_dumper_t *self, unsigned id, unsigned op_co FILE *f = self->data; ir_op *op = stat_get_op_from_opcode(op_code); ir_mode *mode = (ir_mode *)mode_code; + (void) attr; /* if (env->options & OPT_ENC_GRAPH) */ fprintf(f, "%u:", id); @@ -259,6 +259,10 @@ static void stdout_dump_ref(pattern_dumper_t *self, unsigned id) static void stdout_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, unsigned pos, unsigned mode_code) { FILE *f = self->data; + (void) tgt; + (void) src; + (void) pos; + (void) mode_code; if (pos > 0) fprintf(f, ", "); @@ -270,6 +274,7 @@ static void stdout_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, static void stdout_start_children(pattern_dumper_t *self, unsigned id) { FILE *f = self->data; + (void) id; fprintf(f, "("); } /* stdout_start_children */ @@ -280,6 +285,7 @@ static void stdout_start_children(pattern_dumper_t *self, unsigned id) static void stdout_finish_children(pattern_dumper_t *self, unsigned id) { FILE *f = self->data; + (void) id; fprintf(f, ")"); } /* stdout_finish_children */ @@ -423,3 +429,5 @@ pattern_dumper_t *new_vcg_dumper(const char *vcg_name, unsigned max_pattern) return res; } /* new_vcg_dumper */ + +#endif /* FIRM_STATISTICS */