summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2007-01-26 18:00:57 +0100
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2007-01-26 18:00:57 +0100
commite7c0eb4183adb10f251c741d8059646e344304f5 (patch)
tree6f9321231b4abaf0ceba70ab1bf4427ab33ad7a5 /ir/be/beutil.h
parent13d9b424a6a860e86fca870c5dca6ac944eee824 (diff)
moved macro to iterate over link field from beilpsched to beutil
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 9c78d05..760afda 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -10,6 +10,9 @@
#include "irnode.h"
#include "bearch.h"
+/* iterate over a list of ir_nodes linked by link field */
+#define foreach_linked_irns(head, iter) for ((iter) = (head); (iter); (iter) = get_irn_link((iter)))
+
/**
* Get an empty set.
* This function always returns the same set.