X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestatevent.h;h=1420a5680e1653ecc000cd6c359f28113e52e15a;hb=64723d1bd8ace74ca5f0018db8655f2a1f443532;hp=a172d04eaed0bb561db475efabca993b790f42dd;hpb=4d5c3365a58cba59993045a9e08e686d8ae079a7;p=libfirm diff --git a/ir/be/bestatevent.h b/ir/be/bestatevent.h index a172d04ea..1420a5680 100644 --- a/ir/be/bestatevent.h +++ b/ir/be/bestatevent.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -18,26 +18,24 @@ */ /** - * Statistic events - * @date 3.9.2006 - * @author Sebastian Hack + * @file + * @brief Statistic events. + * @author Sebastian Hack + * @date 03.09.2006 + * @version $Id$ */ - -#ifndef _BESTATEVENT_H -#define _BESTATEVENT_H +#ifndef FIRM_BE_BESTATEVENT_H +#define FIRM_BE_BESTATEVENT_H #include #include "firm_types.h" +#include "statev.h" -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_l(const char *ev, long value); -void be_stat_ev_dbl(const char *ev, double value); -void be_stat_ev_ull(const char *ev, ulong64 value); - -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 */