From: Michael Beck Date: Wed, 29 Sep 2004 14:04:00 +0000 (+0000) Subject: is_forking_op() added X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ca8cd1b86778e9505366ab14dd13ee872b4feb30;p=libfirm is_forking_op() added [r4000] --- diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index e9a3857bf..bf5f34ac7 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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); diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index 9fd194b24..54bf91ebc 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -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 **/ /*-----------------------------------------------------------------*/