summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.h
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2011-02-06 16:05:57 +0100
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2011-02-06 16:05:57 +0100
commitfe43982e128771c98ee2b2d4fcc77881e72080e5 (patch)
treedfafa77206b9ad6ab26360074e5c930590c0b890 /ir/be/beuses.h
parent08afd0c691c7f2c385a6ba0d3b3ce7c8891a0978 (diff)
Removed unused parameter from_step of be_get_next_use().
Additionally - switched the type of a visitor counter to ir_visited_t - add some doxygen docu [r28328]
Diffstat (limited to 'ir/be/beuses.h')
-rw-r--r--ir/be/beuses.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/ir/be/beuses.h b/ir/be/beuses.h
index 836f4ee..f033061 100644
--- a/ir/be/beuses.h
+++ b/ir/be/beuses.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
@@ -30,6 +30,9 @@
#include "firm_types.h"
#include "belive.h"
+/**
+ * Describes a use of a value.
+ */
typedef struct be_next_use_t {
unsigned time;
int outermost_loop;
@@ -52,11 +55,21 @@ 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,
- unsigned from_step, const ir_node *def,
- int skip_from_uses);
+ const ir_node *def, int skip_from_uses);
+/**
+ * Creates a new uses environment for a graph.
+ *
+ * @param irg the graph
+ * @param lv liveness information for the graph
+ */
be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv);
+/**
+ * Destroys the given uses environment.
+ *
+ * @param uses the environment
+ */
void be_end_uses(be_uses_t *uses);
#endif /* FIRM_BE_BEUSES_H */