X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestatevent.h;h=1420a5680e1653ecc000cd6c359f28113e52e15a;hb=d300330b1e6df8c8914b8fb70cf38ee1c8ca2634;hp=59316075dc2fcdbfa35f350740b8b3694a8e056d;hpb=07dda083afb68025db61c8278f430e0044e83977;p=libfirm diff --git a/ir/be/bestatevent.h b/ir/be/bestatevent.h index 59316075d..1420a5680 100644 --- a/ir/be/bestatevent.h +++ b/ir/be/bestatevent.h @@ -1,24 +1,41 @@ -/** - * Statistic events - * @date 3.9.2006 - * @author Sebastian Hack +/* + * 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. */ -#ifndef _BESTATEVENT_H -#define _BESTATEVENT_H +/** + * @file + * @brief Statistic events. + * @author Sebastian Hack + * @date 03.09.2006 + * @version $Id$ + */ +#ifndef FIRM_BE_BESTATEVENT_H +#define FIRM_BE_BESTATEVENT_H #include -#define BE_STAT_EV_N_INSN "n_insn" -#define BE_STAT_EV_PHI_BEFORE_SPILL "phi_before_spill" -#define BE_STAT_EV_PHI_AFTER_SPILL "phi_after_spill" - -void be_stat_ev_push(const char **tags, int n_tags, FILE *f); -void be_stat_ev_pop(void); - -void be_stat_ev(const char *ev, int value); -void be_stat_ev_dbl(const char *ev, double value); +#include "firm_types.h" +#include "statev.h" -int be_stat_ev_is_active(void); +#define be_stat_ev(name, val) stat_ev_dbl(name, (double)(val)) +#define be_stat_ev_l(name, val) stat_ev_dbl(name, (double)(val)) +#define be_stat_ev_dbl(name, val) stat_ev_dbl(name, (double)(val)) +#define be_stat_ev_ull(name, val) stat_ev_dbl(name, (double)(val)) +#define be_stat_ev_int(name, val) stat_ev_int(name, (int)(val)) -#endif /* _BESTATEVENT_H */ +#endif /* FIRM_BE_BESTATEVENT_H */