Commit 7b4aaef4 authored by Christoph Mallon's avatar Christoph Mallon

mips: Perform builtin lowering.

parent 6b3f4563
......@@ -17,12 +17,14 @@
#include "iredges.h"
#include "irgwalk.h"
#include "irprog_t.h"
#include "lower_builtins.h"
#include "lower_calls.h"
#include "lowering.h"
#include "mips_bearch_t.h"
#include "mips_emitter.h"
#include "mips_lower64.h"
#include "mips_transform.h"
#include "util.h"
static int mips_is_mux_allowed(ir_node *const sel, ir_node *const mux_false, ir_node *const mux_true)
{
......@@ -280,6 +282,11 @@ static void mips_lower_for_target(void)
be_after_transform(irg, "lower-copyb");
}
ir_builtin_kind const supported[] = {
ir_bk_saturating_increment,
};
lower_builtins(ARRAY_SIZE(supported), supported);
ir_mode *const mode_gp = mips_reg_classes[CLASS_mips_gp].mode;
foreach_irp_irg(i, irg) {
lower_switch(irg, 4, 256, mode_gp);
......
Markdown is supported
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