summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.h
diff options
context:
space:
mode:
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2006-06-23 12:35:37 +0200
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2006-06-23 12:35:37 +0200
commitc156991040b357821b88a31c2a20e0a25399011a (patch)
tree99b95b7f13081ce7bfc3e2b1f402be8d98dc9995 /ir/be/bera.h
parent0478adbff7f8b43f2f685f4852eb844b4747ef7d (diff)
added backend timing facility
register allocator returns now struct with times of single phases
Diffstat (limited to 'ir/be/bera.h')
-rw-r--r--ir/be/bera.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ir/be/bera.h b/ir/be/bera.h
index cb0f588..a0946e9 100644
--- a/ir/be/bera.h
+++ b/ir/be/bera.h
@@ -11,6 +11,7 @@
#ifdef WITH_LIBCORE
#include <libcore/lc_opts.h>
+#include <libcore/lc_timing.h>
#endif
#include "firm_types.h"
@@ -18,10 +19,21 @@
#include "be.h"
typedef struct {
+ lc_timer_t *t_prolog;
+ lc_timer_t *t_epilog;
+ lc_timer_t *t_live;
+ lc_timer_t *t_spill;
+ lc_timer_t *t_color;
+ lc_timer_t *t_ifg;
+ lc_timer_t *t_copymin;
+ lc_timer_t *t_ssa;
+} be_ra_timer_t;
+
+typedef struct {
#ifdef WITH_LIBCORE
void (*register_options)(lc_opt_entry_t *grp);
#endif
- void (*allocate)(const be_irg_t *bi);
+ be_ra_timer_t *(*allocate)(const be_irg_t *bi);
} be_ra_t;