X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.h;h=244eb3ac6d56c2992d8a271b9deef7e33be1a18a;hb=44faeb9742640d3498eb4482f98eb1255607c4d6;hp=0c4027d2d0ca6b0d3a2059b5e0cfdb9354dcc272;hpb=913726a12709fd431025fdd1f4bc520269cb0372;p=libfirm diff --git a/ir/stat/pattern_dmp.h b/ir/stat/pattern_dmp.h index 0c4027d2d..244eb3ac6 100644 --- a/ir/stat/pattern_dmp.h +++ b/ir/stat/pattern_dmp.h @@ -1,5 +1,30 @@ -#ifndef _PATTERN_DMP_H_ -#define _PATTERN_DMP_H_ +/* + * Copyright (C) 1995-2008 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$ + */ +#ifndef FIRM_STAT_PATTERN_DMP_H +#define FIRM_STAT_PATTERN_DMP_H #include "counter.h" @@ -63,4 +88,14 @@ pattern_dumper_t *new_text_dumper(void); */ pattern_dumper_t *new_vcg_dumper(const char *vcg_name, unsigned max_pattern); -#endif /* _PATTERN_DMP_H_ */ +/** + * return the mode index, only needed for statistics + */ +int stat_find_mode_index(const ir_mode *m); + +/** + * return the mode for a given index, only needed for statistics + */ +ir_mode *stat_mode_for_index(int idx); + +#endif /* FIRM_STAT_PATTERN_DMP_H */