Commit 553e7e5f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Use be_foreach_out().

parent 86163b56
......@@ -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))
......
......@@ -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_outs(node); o < n_outs; o++) {
be_foreach_out(node, o) {
arch_set_irn_register_req_out(node, o, arch_no_register_req);
}
}
......
......@@ -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_outs(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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment