Commit ca8cd1b8 authored by Michael Beck's avatar Michael Beck
Browse files

is_forking_op() added

[r4000]
parent 0fed2e71
...@@ -2070,6 +2070,12 @@ ir_node *get_fragile_op_mem(ir_node *node) { ...@@ -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 #ifdef DEBUG_libfirm
void dump_irn (ir_node *n) { void dump_irn (ir_node *n) {
int i, arity = get_irn_arity(n); int i, arity = get_irn_arity(n);
......
...@@ -902,6 +902,10 @@ int is_fragile_op(ir_node *node); ...@@ -902,6 +902,10 @@ int is_fragile_op(ir_node *node);
/** Returns the memory operand of fragile operations. */ /** Returns the memory operand of fragile operations. */
ir_node *get_fragile_op_mem(ir_node *node); 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 **/ /** Debug aides **/
/*-----------------------------------------------------------------*/ /*-----------------------------------------------------------------*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment