X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestatevent.h;h=e0caacc9990b6d6286d5fa123a708153c45cbc64;hb=5474a1c188c9d59eea2c915515980cd9cbab58d8;hp=4a62563e88fc0988deee782b8955d3fca586dc7d;hpb=39f3a8dbd0f00f90b7b12a849d1bf7b9c1329479;p=libfirm diff --git a/ir/be/bestatevent.h b/ir/be/bestatevent.h index 4a62563e8..e0caacc99 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. * @@ -22,7 +22,6 @@ * @brief Statistic events. * @author Sebastian Hack * @date 03.09.2006 - * @version $Id$ */ #ifndef FIRM_BE_BESTATEVENT_H #define FIRM_BE_BESTATEVENT_H @@ -30,15 +29,12 @@ #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 /* FIRM_BE_BESTATEVENT_H */