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

be_get_IncSP_mem() added

parent 85443043
......@@ -714,6 +714,11 @@ ir_node *be_get_IncSP_pred(ir_node *irn) {
return get_irn_n(irn, 0);
}
ir_node *be_get_IncSP_mem(ir_node *irn) {
assert(be_is_IncSP(irn));
return get_irn_n(irn, 1);
}
void be_set_IncSP_offset(ir_node *irn, unsigned offset)
{
be_stack_attr_t *a = get_irn_attr(irn);
......
......@@ -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);
/** Returns the memory input of the IncSP. */
ir_node *be_get_IncSP_mem(ir_node *irn);
/** Sets a new offset to a IncSP node. */
void be_set_IncSP_offset(ir_node *irn, unsigned offset);
......
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