X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.h;h=244eb3ac6d56c2992d8a271b9deef7e33be1a18a;hb=cfaf3084a58841d7e6cab5c9cc2010f340a0c92b;hp=0c4027d2d0ca6b0d3a2059b5e0cfdb9354dcc272;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;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 */