Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
6cb6355e
Commit
6cb6355e
authored
Oct 14, 2015
by
Christoph Mallon
Browse files
amd64: Replace new_store_func by construct_binop_func.
parent
8d110b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_transform.c
View file @
6cb6355e
...
...
@@ -2161,12 +2161,7 @@ static ir_node *create_cvtsd2ss(dbg_info *dbgi, ir_node *block, ir_node *value)
pn_amd64_cvtsd2ss_res
);
}
typedef
ir_node
*
(
*
new_store_func
)(
dbg_info
*
dbgi
,
ir_node
*
block
,
int
arity
,
ir_node
*
const
*
in
,
arch_register_req_t
const
**
in_reqs
,
amd64_binop_addr_attr_t
const
*
addr
);
static
void
store_to_temp
(
new_store_func
new_store
,
static
void
store_to_temp
(
construct_binop_func
const
new_store
,
arch_register_req_t
const
**
const
in_reqs
,
amd64_addr_t
*
addr
,
dbg_info
*
dbgi
,
ir_node
*
block
,
ir_node
**
in
,
int
*
n_in
,
ir_node
*
op
,
ir_mode
*
mode
)
...
...
@@ -2446,7 +2441,7 @@ static ir_node *gen_Store(ir_node *const node)
:
xmm_am_reqs
)
:
gp_am_reqs
)[
arity
-
1
];
new_store
_func
const
cons
construct_binop
_func
const
cons
=
mode_is_float
(
mode
)
?
(
mode
==
x86_mode_E
?
&
new_bd_amd64_fstp
:
&
new_bd_amd64_movs_store_xmm
)
:
&
new_bd_amd64_mov_store
;
...
...
@@ -2475,7 +2470,7 @@ ir_node *amd64_new_spill(ir_node *value, ir_node *after)
ir_node
*
in
[]
=
{
value
,
frame
,
mem
};
amd64_insn_mode_t
insn_mode
;
new_store_func
cons
;
construct_binop_func
cons
;
arch_register_req_t
const
**
reqs
;
if
(
mode_is_float
(
mode
)
||
mode
==
amd64_mode_xmm
)
{
if
(
mode
==
x86_mode_E
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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