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
0aa4fe7e
Commit
0aa4fe7e
authored
Nov 14, 2014
by
Christoph Mallon
Browse files
ia32: For readability move the code to add the prologue into a separate function.
parent
682078bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
0aa4fe7e
...
...
@@ -1096,10 +1096,7 @@ static void introduce_epilogue(ir_node *ret)
kill_node
(
first_sp
);
}
/**
* Put the prologue code at the beginning, epilogue code before each return
*/
static
void
introduce_prologue_epilogue
(
ir_graph
*
irg
)
static
void
introduce_prologue
(
ir_graph
*
const
irg
)
{
const
arch_register_t
*
sp
=
&
ia32_registers
[
REG_ESP
];
const
arch_register_t
*
bp
=
&
ia32_registers
[
REG_EBP
];
...
...
@@ -1150,6 +1147,14 @@ static void introduce_prologue_epilogue(ir_graph *irg)
edges_reroute_except
(
initial_sp
,
incsp
,
incsp
);
sched_add_after
(
start
,
incsp
);
}
}
/**
* Put the prologue code at the beginning, epilogue code before each return
*/
static
void
introduce_prologue_epilogue
(
ir_graph
*
const
irg
)
{
introduce_prologue
(
irg
);
/* introduce epilogue for every return node */
foreach_irn_in
(
get_irg_end_block
(
irg
),
i
,
ret
)
{
...
...
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