4 * @author Sebastian Hack, Matthias Braun
6 * Determine future usages of values.
8 * Copyright (C) 2005 Universitaet Karlsruhe
9 * Released under the GPL
17 typedef struct _be_next_use_t {
22 #define USES_INFINITY 10000000
23 #define USES_PENDING 9999999
25 static INLINE int USES_IS_INFINITE(unsigned time)
27 return time >= USES_INFINITY;
30 static INLINE int USES_IS_PENDING(unsigned time)
32 return time == USES_PENDING;
35 typedef struct _be_uses_t be_uses_t;
37 be_next_use_t be_get_next_use(be_uses_t *uses, ir_node *from,
38 unsigned from_step, const ir_node *def,
41 be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv);
43 void be_end_uses(be_uses_t *uses);
45 #endif /* _BEUSES_H */