Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
d32b78d7
Commit
d32b78d7
authored
Feb 28, 2006
by
Sebastian Hack
Browse files
Minor changes
parent
6e7f7018
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.c
View file @
d32b78d7
...
...
@@ -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
;
...
...
ir/be/bearch.h
View file @
d32b78d7
...
...
@@ -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.
* <tt>-n</tt> if the node modifies the sp by n against the stack's growing
* direction and <tt>n</tt> 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment