summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-06-06 14:42:25 +0200
committerMatthias Braun <matze@braunis.de>2013-06-06 14:42:25 +0200
commitcedc305c4d5c0f97192cc04ba73723e9df76bb73 (patch)
tree5f2f27679ae43b3b633e13a75b0fdaaa81320138 /ir/be/betranshlp.h
parentd4c5eceb40f378a51ab7661a4c7c8f7dcb96a1ba (diff)
get rid of an explicit Rotl node
The backends which support rotl now match for or(shl,shr) patterns.
Diffstat (limited to 'ir/be/betranshlp.h')
-rw-r--r--ir/be/betranshlp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/betranshlp.h b/ir/be/betranshlp.h
index 225c6d0..e68ee9f 100644
--- a/ir/be/betranshlp.h
+++ b/ir/be/betranshlp.h
@@ -95,4 +95,10 @@ void be_set_upper_bits_clean_function(ir_op *op, upper_bits_clean_func func);
*/
bool be_upper_bits_clean(const ir_node *node, ir_mode *mode);
+/**
+ * returns true if node is the root pattern of a (left) rotation.
+ * The root @p node must be an Add or Or node.
+ */
+bool be_pattern_is_rotl(const ir_node *node, ir_node **left, ir_node **right);
+
#endif