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
d1eec4e2
Commit
d1eec4e2
authored
Mar 01, 2006
by
Sebastian Hack
Browse files
Added mem dependency for IncSP
parent
841a0e35
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/benode.c
View file @
d1eec4e2
...
...
@@ -308,14 +308,15 @@ ir_node *be_new_Return(ir_graph *irg, ir_node *bl, int n, ir_node *in[])
return
irn
;
}
ir_node
*
be_new_IncSP
(
const
arch_register_t
*
sp
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
old_sp
,
unsigned
offset
,
be_stack_dir_t
dir
)
ir_node
*
be_new_IncSP
(
const
arch_register_t
*
sp
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
old_sp
,
ir_node
*
mem
,
unsigned
offset
,
be_stack_dir_t
dir
)
{
be_stack_attr_t
*
a
;
ir_node
*
irn
;
ir_node
*
in
[
1
];
in
[
0
]
=
old_sp
;
irn
=
new_ir_node
(
NULL
,
irg
,
bl
,
op_IncSP
,
sp
->
reg_class
->
mode
,
1
,
in
);
in
[
1
]
=
mem
;
irn
=
new_ir_node
(
NULL
,
irg
,
bl
,
op_IncSP
,
sp
->
reg_class
->
mode
,
2
,
in
);
a
=
init_node_attr
(
irn
,
sp
->
reg_class
,
irg
,
1
);
a
->
dir
=
dir
;
a
->
offset
=
offset
;
...
...
ir/be/benode_t.h
View file @
d1eec4e2
...
...
@@ -70,7 +70,7 @@ ir_node *be_new_AddSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
* @return A new stack pointer increment/decrement node.
* @note This node sets a register constraint to the @p sp register on its output.
*/
ir_node
*
be_new_IncSP
(
const
arch_register_t
*
sp
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
old_sp
,
unsigned
amount
,
be_stack_dir_t
dir
);
ir_node
*
be_new_IncSP
(
const
arch_register_t
*
sp
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
old_sp
,
ir_node
*
mem
,
unsigned
amount
,
be_stack_dir_t
dir
);
void
be_set_IncSP_offset
(
ir_node
*
irn
,
unsigned
offset
);
unsigned
be_get_IncSP_offset
(
ir_node
*
irn
);
...
...
Write
Preview
Supports
Markdown
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