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
553e7e5f
Commit
553e7e5f
authored
Nov 12, 2014
by
Christoph Mallon
Browse files
be: Use be_foreach_out().
parent
86163b56
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_finish.c
View file @
553e7e5f
...
...
@@ -186,10 +186,8 @@ static ir_node *amd64_turn_back_am(ir_node *node)
*/
static
void
assure_should_be_same_requirements
(
ir_node
*
const
node
)
{
unsigned
const
n_res
=
arch_get_irn_n_outs
(
node
);
/* Check all OUT requirements, if there is a should_be_same. */
for
(
unsigned
i
=
0
;
i
<
n_res
;
++
i
)
{
be_foreach_out
(
node
,
i
)
{
arch_register_req_t
const
*
const
req
=
arch_get_irn_register_req_out
(
node
,
i
);
if
(
!
arch_register_req_is
(
req
,
should_be_same
))
...
...
ir/be/amd64/amd64_new_nodes.c
View file @
553e7e5f
...
...
@@ -138,7 +138,7 @@ static void init_amd64_switch_attributes(ir_node *node,
attr
->
table
=
table
;
attr
->
table_entity
=
table_entity
;
for
(
unsigned
o
=
0
,
n_outs
=
arch_get_irn_n
_out
s
(
node
);
o
<
n_outs
;
o
++
)
{
be_foreach
_out
(
node
,
o
)
{
arch_set_irn_register_req_out
(
node
,
o
,
arch_no_register_req
);
}
}
...
...
ir/be/ia32/ia32_fpu.c
View file @
553e7e5f
...
...
@@ -212,7 +212,7 @@ static void collect_fpu_mode_nodes_walker(ir_node *node, void *data)
return
;
collect_fpu_mode_nodes_env_t
*
env
=
(
collect_fpu_mode_nodes_env_t
*
)
data
;
for
(
unsigned
o
=
0
,
n
=
arch_get_irn_n
_out
s
(
node
);
o
<
n
;
++
o
)
{
be_foreach
_out
(
node
,
o
)
{
const
arch_register_t
*
reg
=
arch_get_irn_register_out
(
node
,
o
);
if
(
reg
!=
&
ia32_registers
[
REG_FPCW
])
continue
;
...
...
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