is_forking_op() added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 29 Sep 2004 14:04:00 +0000 (14:04 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 29 Sep 2004 14:04:00 +0000 (14:04 +0000)
[r4000]

ir/ir/irnode.c
ir/ir/irnode.h

index e9a3857..bf5f34a 100644 (file)
@@ -2070,6 +2070,12 @@ ir_node *get_fragile_op_mem(ir_node *node) {
   }
 }
 
+/* Returns true if the operation is a forking control flow operation. */
+int
+is_forking_op(ir_node *node) {
+  return is_op_forking(get_irn_op(node));
+}
+
 #ifdef DEBUG_libfirm
 void dump_irn (ir_node *n) {
   int i, arity = get_irn_arity(n);
index 9fd194b..54bf91e 100644 (file)
@@ -902,6 +902,10 @@ int is_fragile_op(ir_node *node);
 /** Returns the memory operand of fragile operations. */
 ir_node *get_fragile_op_mem(ir_node *node);
 
+/** Returns true if the operation is a forking control flow
+ *  operation: Cond. */
+int is_forking_op(ir_node *node);
+
 /*-----------------------------------------------------------------*/
 /** Debug aides                                                   **/
 /*-----------------------------------------------------------------*/