be: Rename be_set_allocatable_regs() to be_get_allocatable_regs().
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Dec 2012 13:03:56 +0000 (14:03 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Dec 2012 16:58:39 +0000 (17:58 +0100)
ir/be/be_t.h
ir/be/beabi.c
ir/be/beprefalloc.c
ir/be/ia32/ia32_common_transform.c

index 8f60ce7..38c9391 100644 (file)
@@ -73,9 +73,7 @@ void be_init_default_asm_constraint_flags(void);
 void be_put_allocatable_regs(const ir_graph *irg,
                              const arch_register_class_t *cls, bitset_t *bs);
 
-void be_set_allocatable_regs(const ir_graph *irg,
-                             const arch_register_class_t *cls,
-                             unsigned *raw_bitset);
+void be_get_allocatable_regs(ir_graph const *irg, arch_register_class_t const *cls, unsigned *raw_bitset);
 
 unsigned be_get_n_allocatable_regs(const ir_graph *irg,
                                    const arch_register_class_t *cls);
index babb688..377b675 100644 (file)
@@ -1827,9 +1827,7 @@ unsigned be_get_n_allocatable_regs(const ir_graph *irg,
        return bitset_popcount(bs);
 }
 
-void be_set_allocatable_regs(const ir_graph *irg,
-                             const arch_register_class_t *cls,
-                             unsigned *raw_bitset)
+void be_get_allocatable_regs(ir_graph const *const irg, arch_register_class_t const *const cls, unsigned *const raw_bitset)
 {
        be_irg_t *birg             = be_birg_from_irg(irg);
        unsigned *allocatable_regs = birg->allocatable_regs;
index 3c6cf50..28d5b24 100644 (file)
@@ -1855,7 +1855,7 @@ static void be_pref_alloc(ir_graph *new_irg)
 
                n_regs      = arch_register_class_n_regs(cls);
                normal_regs = rbitset_malloc(n_regs);
-               be_set_allocatable_regs(irg, cls, normal_regs);
+               be_get_allocatable_regs(irg, cls, normal_regs);
 
                spill();
 
index 36c7fb0..e6fa90e 100644 (file)
@@ -493,9 +493,7 @@ ir_node *ia32_gen_ASM(ir_node *node)
                        if (r_clobber_bits != 0) {
                                if (parsed_constraint.all_registers_allowed) {
                                        parsed_constraint.all_registers_allowed = 0;
-                                       be_set_allocatable_regs(irg,
-                                                       parsed_constraint.cls,
-                                                       &parsed_constraint.allowed_registers);
+                                       be_get_allocatable_regs(irg, parsed_constraint.cls, &parsed_constraint.allowed_registers);
                                }
                                parsed_constraint.allowed_registers &= ~r_clobber_bits;
                        }