Add arch_get_register_req_out().
[libfirm] / ir / be / bespilloptions.c
index ed5eac9..f6cfb73 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -24,9 +24,7 @@
  * @date        29.09.2005
  * @version     $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include "irtools.h"
 
@@ -34,9 +32,8 @@
 #include "bemodule.h"
 #include "be.h"
 
-#include <libcore/lc_opts.h>
-#include <libcore/lc_opts_enum.h>
-#include <libcore/lc_timing.h>
+#include "lc_opts.h"
+#include "lc_opts_enum.h"
 
 int be_coalesce_spill_slots = 1;
 int be_do_remats = 1;
@@ -44,23 +41,23 @@ int be_do_remats = 1;
 static const lc_opt_table_entry_t be_spill_options[] = {
        LC_OPT_ENT_BOOL ("coalesce_slots", "coalesce the spill slots", &be_coalesce_spill_slots),
        LC_OPT_ENT_BOOL ("remat", "try to rematerialize values instead of reloading", &be_do_remats),
-       LC_OPT_ENT_NULL
+       LC_OPT_LAST
 };
 
 static be_module_list_entry_t *spillers = NULL;
-static be_spiller_t *selected_spiller = NULL;
+static const be_spiller_t *selected_spiller = NULL;
 
 void be_register_spiller(const char *name, be_spiller_t *spiller)
 {
-       if(selected_spiller == NULL)
+       if (selected_spiller == NULL)
                selected_spiller = spiller;
        be_add_module_to_list(&spillers, name, spiller);
 }
 
-void be_do_spill(be_irg_t *birg, const arch_register_class_tcls)
+void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls)
 {
        assert(selected_spiller != NULL);
-       if(selected_spiller != NULL) {
+       if (selected_spiller != NULL) {
                selected_spiller->spill(birg, cls);
        }
 }