summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-08 02:21:46 +0100
committerMatthias Braun <matze@braunis.de>2017-01-28 18:45:41 +0100
commitacf1a376620890041b2a637a79a46da6700012d6 (patch)
tree4db071fde9f045eca6b5931b687d365b4d70af68 /ir/be/mips
parentec7cfdce1d4fbf613620772367a7adf3f3ca50a4 (diff)
irarch: Leave setup to backends
Let backends perform the irarch setup in lower_for_target(). Frontends do not need to explicitely enable it any longer and there is no need to keep the settings around in backend_params.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_bearch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ir/be/mips/mips_bearch.c b/ir/be/mips/mips_bearch.c
index 5333da9..83df751 100644
--- a/ir/be/mips/mips_bearch.c
+++ b/ir/be/mips/mips_bearch.c
@@ -13,7 +13,7 @@
#include "betranshlp.h"
#include "gen_mips_new_nodes.h"
#include "gen_mips_regalloc_if.h"
-#include "irarch_t.h"
+#include "irarch.h"
#include "iredges.h"
#include "irgwalk.h"
#include "irprog_t.h"
@@ -50,7 +50,6 @@ static backend_params mips_backend_params = {
.pic_supported = false,
.unaligned_memaccess_supported = false,
.modulo_shift = MIPS_MACHINE_SIZE,
- .dep_param = &mips_arch_dep,
.allow_ifconv = &mips_is_mux_allowed,
.machine_size = MIPS_MACHINE_SIZE,
.mode_float_arithmetic = NULL, /* will be set later */ // TODO
@@ -273,6 +272,9 @@ static void mips_generate_code(FILE *const output, char const *const cup_name)
static void mips_lower_for_target(void)
{
+ ir_arch_lower(&mips_arch_dep);
+ be_after_irp_transform("lower-arch-dep");
+
lower_calls_with_compounds(LF_RETURN_HIDDEN | LF_DONT_LOWER_ARGUMENTS, NULL);
be_after_irp_transform("lower-calls");