projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use is_$KIND(n) instead of get_irn_op(n) == op_$KIND.
[libfirm]
/
ir
/
be
/
beuses.h
diff --git
a/ir/be/beuses.h
b/ir/be/beuses.h
index
f033061
..
dbd74eb
100644
(file)
--- a/
ir/be/beuses.h
+++ b/
ir/be/beuses.h
@@
-22,7
+22,6
@@
* @brief Methods to compute when a value will be used again.
* @author Sebastian Hack, Matthias Braun
* @date 27.06.2005
* @brief Methods to compute when a value will be used again.
* @author Sebastian Hack, Matthias Braun
* @date 27.06.2005
- * @version $Id$
*/
#ifndef FIRM_BE_BEUSES_H
#define FIRM_BE_BEUSES_H
*/
#ifndef FIRM_BE_BEUSES_H
#define FIRM_BE_BEUSES_H
@@
-35,19
+34,20
@@
*/
typedef struct be_next_use_t {
unsigned time;
*/
typedef struct be_next_use_t {
unsigned time;
- int outermost_loop;
+ unsigned outermost_loop;
+ /* point of the next use is at the beginning of this node. */
const ir_node *before;
} be_next_use_t;
#define USES_INFINITY 10000000
#define USES_PENDING 9999999
const ir_node *before;
} be_next_use_t;
#define USES_INFINITY 10000000
#define USES_PENDING 9999999
-static inline
int
USES_IS_INFINITE(unsigned time)
+static inline
bool
USES_IS_INFINITE(unsigned time)
{
return time >= USES_INFINITY;
}
{
return time >= USES_INFINITY;
}
-static inline
int
USES_IS_PENDING(unsigned time)
+static inline
bool
USES_IS_PENDING(unsigned time)
{
return time == USES_PENDING;
}
{
return time == USES_PENDING;
}
@@
-55,7
+55,7
@@
static inline int USES_IS_PENDING(unsigned time)
typedef struct be_uses_t be_uses_t;
be_next_use_t be_get_next_use(be_uses_t *uses, ir_node *from,
typedef struct be_uses_t be_uses_t;
be_next_use_t be_get_next_use(be_uses_t *uses, ir_node *from,
- const ir_node *def, int skip_from_uses);
+
const ir_node *def, int skip_from_uses);
/**
* Creates a new uses environment for a graph.
/**
* Creates a new uses environment for a graph.
@@
-72,4
+72,4
@@
be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv);
*/
void be_end_uses(be_uses_t *uses);
*/
void be_end_uses(be_uses_t *uses);
-#endif
/* FIRM_BE_BEUSES_H */
+#endif