Commit 9cf5785d authored by Christian Würdig's avatar Christian Würdig
Browse files

added function to set be_IncSP pred

parent aacffd4e
......@@ -714,6 +714,11 @@ ir_node *be_get_IncSP_pred(ir_node *irn) {
return get_irn_n(irn, 0);
}
void *be_set_IncSP_pred(ir_node *incsp, ir_node *pred) {
assert(be_is_IncSP(incsp));
set_irn_n(incsp, 0, pred);
}
ir_node *be_get_IncSP_mem(ir_node *irn) {
assert(be_is_IncSP(irn));
return get_irn_n(irn, 1);
......
......@@ -157,6 +157,9 @@ ir_node *be_new_IncSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
/** Returns the previous node that computes the stack pointer. */
ir_node *be_get_IncSP_pred(ir_node *incsp);
/** Sets the previous node that computes the stack pointer. */
void *be_set_IncSP_pred(ir_node *incsp, ir_node *pred);
/** Returns the memory input of the IncSP. */
ir_node *be_get_IncSP_mem(ir_node *irn);
......
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