Commit 83c61a00 authored by Christian Würdig's avatar Christian Würdig
Browse files

added get/set for CopyKeep operand

parent a12101bc
......@@ -605,6 +605,14 @@ ir_node *be_new_CopyKeep_single(const arch_register_class_t *cls, ir_graph *irg,
return be_new_CopyKeep(cls, irg, bl, src, 1, in, mode);
}
ir_node *be_get_CopyKeep_op(const ir_node *cpy) {
return get_irn_n(cpy, be_pos_CopyKeep_op);
}
void be_set_CopyKeep_op(ir_node *cpy, ir_node *op) {
set_irn_n(cpy, be_pos_CopyKeep_op, op);
}
ir_node *be_new_Barrier(ir_graph *irg, ir_node *bl, int n, ir_node *in[])
{
ir_node *irn;
......
......@@ -299,7 +299,8 @@ enum {
};
ir_node *be_new_CopyKeep(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, ir_node *src, int n, ir_node *in_keep[], ir_mode *mode);
ir_node *be_new_CopyKeep_single(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, ir_node *src, ir_node *keep, ir_mode *mode);
ir_node *be_get_CopyKeep_op(const ir_node *cpy);
void be_set_CopyKeep_op(ir_node *cpy, ir_node *op);
/**
* Get the backend opcode of a backend node.
......
Markdown is supported
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