FIRM_API const char *get_irn_opname(const ir_node *node);
/** Returns the ident for a string representation of the opcode. */
FIRM_API ident *get_irn_opident(const ir_node *node);
-/** If arg is an argument of the node, returns its position, -1 otherwise */
-FIRM_API int get_irn_pred_pos(ir_node *node, ir_node *arg);
/** Returns the visited counter of a node. */
FIRM_API ir_visited_t get_irn_visited(const ir_node *node);
/** Sets the visited counter of a node. */
return get_irn_idx_(node);
}
-int get_irn_pred_pos(ir_node *node, ir_node *arg)
-{
- int i;
- for (i = get_irn_arity(node) - 1; i >= 0; i--) {
- if (get_irn_n(node, i) == arg)
- return i;
- }
- return -1;
-}
-
ir_node *(get_nodes_block)(const ir_node *node)
{
return get_nodes_block_(node);