bugfix
[libfirm] / ir / stat / firmstat.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/firmstat.h
4  * Purpose:     Statistics for Firm.
5  * Author:      Michael Beck
6  * Created:
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 2004 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11
12
13 # ifndef _FIRMSTAT_H_
14 # define _FIRMSTAT_H_
15
16 #ifdef FIRM_STATISTICS
17
18 /**
19  * initialize the statistics module.
20  */
21 void stat_init(void);
22
23 /**
24  * A new IR op is registered.
25  */
26 void stat_new_ir_op(const ir_op *op);
27
28 /**
29  * An IR op is freed.
30  */
31 void stat_free_ir_op(const ir_op *op);
32
33 /**
34  * A new node is created.
35  */
36 void stat_new_node(const ir_node *node);
37
38 #else
39
40 #define stat_init()
41 #define stat_new_ir_op(op)
42 #define stat_free_ir_op(op)
43 #define stat_new_node(node)
44
45 #endif
46
47
48 #endif /* _FIRMSTAT_H_ */