summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2006-12-21 16:07:03 +0100
committerMatthias Braun <matze@braunis.de>2006-12-21 16:07:03 +0100
commit80a6158fdd766f42ee6c508a773bc114ff1b61f3 (patch)
treea6f38c30dd759c415c2a0db8239e4b4ddd938e29 /ir/be/bera.c
parent2d18eed00c45125d825402bf2549e771199de2df (diff)
start register allocator again, fix typo
Diffstat (limited to 'ir/be/bera.c')
-rw-r--r--ir/be/bera.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir/be/bera.c b/ir/be/bera.c
index 3525d7f..3627669 100644
--- a/ir/be/bera.c
+++ b/ir/be/bera.c
@@ -122,6 +122,14 @@ void be_register_allocator(const char *name, be_ra_t *allocator)
be_add_module_to_list(&register_allocators, name, allocator);
}
+void be_allocate_registers(be_irg_t *birg)
+{
+ assert(selected_allocator != NULL);
+ if(selected_allocator != NULL) {
+ selected_allocator->allocate(birg);
+ }
+}
+
void be_init_ra(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");