return a;
}
-static INLINE int is_be_node(const ir_node *irn)
+int is_be_node(const ir_node *irn)
{
return get_op_tag(get_irn_op(irn)) == &be_node_tag;
}
return get_irn_n(cpy, be_pos_Copy_op);
}
+void be_set_Copy_op(ir_node *cpy, ir_node *op) {
+ set_irn_n(cpy, be_pos_Copy_op, op);
+}
+
ir_node *be_new_Keep(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, int n, ir_node *in[])
{
int i;
XXX(Perm, perm);
XXX(Copy, copy);
XXX(Return, branch);
+ XXX(StackParam, stackparam);
#undef XXX
default:
return 0;
*/
#define BE_STACK_FRAME_SIZE ((unsigned) -1)
+/**
+ * Determines if irn is a be_node.
+ */
+int is_be_node(const ir_node *irn);
+
/**
* Create all BE specific opcodes.
*/
ir_node *be_new_Copy(const arch_register_class_t *cls, ir_graph *irg, ir_node *block, ir_node *in);
/** Returns the Copy Argument. */
ir_node *be_get_Copy_op(const ir_node *cpy);
+/** Sets the Copy Argument. */
+void be_set_Copy_op(ir_node *cpy, ir_node *op);
/**
* Make a new Perm node.