From: Sebastian Hack Date: Tue, 28 Feb 2006 13:28:29 +0000 (+0000) Subject: Minor changes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d32b78d7372f6cb8231b108d00992cf0133072a1;p=libfirm Minor changes --- diff --git a/ir/be/bearch.c b/ir/be/bearch.c index c3dd537f8..098e3dbc1 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -85,6 +85,13 @@ const arch_register_req_t *arch_get_register_req(const arch_env_t *env, return ops->impl->get_irn_reg_req(ops, req, irn, pos); } +void arch_set_stack_bias(const arch_env_t *env, ir_node *irn, int bias) +{ + const arch_irn_ops_t *ops = get_irn_ops(env, irn); + ops->impl->set_stack_bias(ops, irn, bias); +} + + int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, int pos, bitset_t *bs) { arch_register_req_t local_req; diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 9c11bb2e5..0c0cf0d87 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -251,18 +251,6 @@ struct _arch_irn_ops_if_t { */ arch_irn_flags_t (*get_flags)(const void *self, const ir_node *irn); - /** - * Check, if a node modifies the stack pointer by a constant. - * @param self The this pointer. - * @param irn The node in question. - * @return The (constant) amount by which the stack pointer is modifies - * by this node. Return 0, if irn does not touch the stack pointer. - * -n if the node modifies the sp by n against the stack's growing - * direction and n if irn modifies the stack by n along the stack's - * growing direction. - */ - int (*modifies_sp)(const void *self, const ir_node *irn); - /** * Set a bias for the stack pointer. * If the node in question uses the stack pointer for indexing, it must @@ -281,6 +269,9 @@ struct _arch_irn_ops_t { const arch_irn_ops_if_t *impl; }; +extern void +arch_set_stack_bias(const arch_env_t *env, ir_node *irn, int bias); + /** * Get the register requirements for a node. * @param env The architecture environment.