projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c76a3b7
)
- add a macro to iterate over the Phi nodes of a block schedule only
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 27 Nov 2008 12:53:10 +0000
(12:53 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 27 Nov 2008 12:53:10 +0000
(12:53 +0000)
[r24055]
ir/be/besched.h
patch
|
blob
|
history
diff --git
a/ir/be/besched.h
b/ir/be/besched.h
index
5352f5e
..
a7b8699
100644
(file)
--- a/
ir/be/besched.h
+++ b/
ir/be/besched.h
@@
-79,6
+79,14
@@
void sched_remove(const ir_node *irn);
#define sched_foreach_reverse(block,irn) \
sched_foreach_reverse_from(sched_last(block), irn)
+/**
+ * A shorthand macro for iterating over all Phi nodes of a schedule.
+ * @param block The block.
+ * @param phi A ir node pointer used as an iterator.
+ */
+#define sched_foreach_Phi(block,phi) \
+ for (phi = sched_first(block); is_Phi(phi); phi = sched_next(phi))
+
/**
* Removes dead nodes from schedule
* @param irg the graph