summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.h
diff options
context:
space:
mode:
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2005-09-20 14:50:32 +0200
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2005-09-20 14:50:32 +0200
commit1013579946ac0cdb7e1461a6b52006e01d87716b (patch)
tree7c44c45c93bd206e048dc9ec63ac81510f5dad28 /ir/be/beuses.h
parent90e01090427e6b3bf531ecca498729f2a9507aaf (diff)
Added uses module
Diffstat (limited to 'ir/be/beuses.h')
-rw-r--r--ir/be/beuses.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ir/be/beuses.h b/ir/be/beuses.h
new file mode 100644
index 0000000..06a97b0
--- /dev/null
+++ b/ir/be/beuses.h
@@ -0,0 +1,30 @@
+/**
+ * @file beuse.h
+ * @date 27.06.2005
+ * @author Sebastian Hack
+ *
+ * Determine future usages of values.
+ *
+ * Copyright (C) 2005 Universitaet Karlsruhe
+ * Released under the GPL
+ */
+
+#ifndef _BEUSES_H
+#define _BEUSES_H
+
+#define USES_INFINITY 1000000
+#define USES_IS_INIFINITE(x) ((x) >= USES_INFINITY)
+
+typedef struct _loc_t loc_t;
+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);
+
+be_uses_t *be_begin_uses(ir_graph *irg,
+ const arch_env_t *arch_env,
+ const arch_register_class_t *cls);
+
+void be_end_uses(be_uses_t *uses);
+
+#endif /* _BEUSES_H */