X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.c;h=d8752fc1351e520f402b26fb412f32c330645c71;hb=8f97b69a6eb98c92e51190b7e2323ec8e0a1fa00;hp=e2536ad8f0ed747e410afee9110d07b3c4a29002;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c index e2536ad8f..d8752fc13 100644 --- a/ir/stat/pattern_dmp.c +++ b/ir/stat/pattern_dmp.c @@ -1,14 +1,28 @@ /* - * 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 - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * 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 Statistics for Firm. Dumping patterns. + * @author Michael Beck + * @version $Id$ + */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -159,6 +173,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; @@ -215,6 +230,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); @@ -241,6 +257,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, ", "); @@ -252,6 +272,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 */ @@ -262,6 +283,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 */