X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestatevent.h;h=1420a5680e1653ecc000cd6c359f28113e52e15a;hb=2a018b8111bd0596816c1d00c38a0024857753f7;hp=c117465b98d6ff97262991aaaa2b937fc49cb9ae;hpb=0050bc6bc6026d71c49d10b4644fc1e635682d46;p=libfirm diff --git a/ir/be/bestatevent.h b/ir/be/bestatevent.h index c117465b9..1420a5680 100644 --- a/ir/be/bestatevent.h +++ b/ir/be/bestatevent.h @@ -1,25 +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); -void be_stat_ev_ull(const char *ev, unsigned long long 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 */