summaryrefslogtreecommitdiffhomepage
path: root/ir/be/besched.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-02 12:11:34 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-02 12:11:34 +0100
commitfef8dc3eff6468d7d65485af8e1ac9884c504e1a (patch)
tree505c4275ba0f4738b321ff552fbf8fab52e527e9 /ir/be/besched.h
parentd7f28dfa0e3b0c117eb4234190aac91b7cc9e65c (diff)
besched: Add and use sched_replace().
Diffstat (limited to 'ir/be/besched.h')
-rw-r--r--ir/be/besched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/besched.h b/ir/be/besched.h
index b598ce5..15e0996 100644
--- a/ir/be/besched.h
+++ b/ir/be/besched.h
@@ -153,6 +153,11 @@ static inline void sched_reset(ir_node *node)
void sched_remove(ir_node *irn);
/**
+ * Remove @p old from the schedule and put @p irn in its place.
+ */
+void sched_replace(ir_node *old, ir_node *irn);
+
+/**
* Checks, if one node is scheduled before another.
* @param n1 A node.
* @param n2 Another node.