summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorDaniel Grund <grund@cs.uni-saarland.de>2006-01-25 18:59:10 +0100
committerDaniel Grund <grund@cs.uni-saarland.de>2006-01-25 18:59:10 +0100
commit378ec2fefc9d98c063c39be1c6775a0cf2409654 (patch)
tree57889e957450cb9603a3ad662ca8d298411dba18 /ir/be/beutil.h
parentcdf28710bfb9bc07406af412d6780c7cdb9283d2 (diff)
Added a dom-tree-upwards search
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 8df13b8..84a59ed 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -6,6 +6,7 @@
#include <stdio.h>
+#include "pset.h"
#include "irnode.h"
#include "bearch.h"
@@ -94,3 +95,10 @@ static INLINE FILE *ffopen(const char *base, const char *ext, const char *mode)
void dump_ir_block_graph_sched(ir_graph *irg, const char *suffix);
#endif
+
+/**
+ * Search for an irn in @p accept.
+ * The search is started at @p start_point_exclusive and continues upwards the dom-tree
+ * @return The first node out of accept if found. Else NULL is returned.
+ */
+ir_node *dom_up_search(pset *accept, ir_node *start_point_exclusive);