summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2006-09-08 11:12:09 +0200
committerMatthias Braun <matze@braunis.de>2006-09-08 11:12:09 +0200
commite7de04b0c2ffcb0903e0aed1a7310d3b3b1dd0be (patch)
tree704d0dbf324072a0b9a195f01993dd3270ae5bdf /ir/be/beuses.h
parent4b4900ad188b4276f9c35b9b458927bd57b5a79d (diff)
make belady look for uses beyond block borders
Diffstat (limited to 'ir/be/beuses.h')
-rw-r--r--ir/be/beuses.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/ir/be/beuses.h b/ir/be/beuses.h
index 2300bde..604ae0d 100644
--- a/ir/be/beuses.h
+++ b/ir/be/beuses.h
@@ -1,14 +1,13 @@
/**
* @file beuse.h
* @date 27.06.2005
- * @author Sebastian Hack
+ * @author Sebastian Hack, Matthias Braun
*
* Determine future usages of values.
*
* Copyright (C) 2005 Universitaet Karlsruhe
* Released under the GPL
*/
-
#ifndef _BEUSES_H
#define _BEUSES_H
@@ -16,15 +15,20 @@
#include "belive.h"
#define USES_INFINITY 1000000
-#define USES_IS_INIFINITE(x) ((x) >= USES_INFINITY)
-typedef struct _loc_t loc_t;
+static INLINE int USES_IS_INFINITE(unsigned time)
+{
+ return time >= USES_INFINITY;
+}
+
typedef struct _be_uses_t be_uses_t;
unsigned be_get_next_use(be_uses_t *uses, const ir_node *from,
- unsigned from_step, const ir_node *def, int skip_from_uses);
+ unsigned from_step, const ir_node *def,
+ int skip_from_uses);
-be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv, const arch_env_t *arch_env, const arch_register_class_t *cls);
+be_uses_t *be_begin_uses(ir_graph *irg, const exec_freq_t *execfreqs,
+ const be_lv_t *lv);
void be_end_uses(be_uses_t *uses);