From 9cf5785dacb19acf921835a9dab9decf75dc44aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Tue, 4 Apr 2006 14:44:26 +0000 Subject: [PATCH] added function to set be_IncSP pred --- ir/be/benode.c | 5 +++++ ir/be/benode_t.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ir/be/benode.c b/ir/be/benode.c index ab74ed6df..9846b1c56 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -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); diff --git a/ir/be/benode_t.h b/ir/be/benode_t.h index 51f278886..8a432898b 100644 --- a/ir/be/benode_t.h +++ b/ir/be/benode_t.h @@ -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); -- 2.20.1