Commit 70b88494 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Rename be_set_allocatable_regs() to be_get_allocatable_regs().

parent 58765e7a
......@@ -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);
......
......@@ -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;
......
......@@ -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();
......
......@@ -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;
}
......
Supports Markdown
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