X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fppc32%2Fppc32_transform.c;h=b60ee6d9df4731de5fbdce894523d2c5126ec026;hb=2176caea24ef5a9786dc4ada2bd2eaf74ad88b4d;hp=a0437e5fcc5c56eb7848e07bd05edb398d009f72;hpb=4abddac964a60dad95af9f740d226a52f4e0ab2d;p=libfirm diff --git a/ir/be/ppc32/ppc32_transform.c b/ir/be/ppc32/ppc32_transform.c index a0437e5fc..b60ee6d9d 100644 --- a/ir/be/ppc32/ppc32_transform.c +++ b/ir/be/ppc32/ppc32_transform.c @@ -35,7 +35,6 @@ #include "iredges_t.h" #include "irvrfy.h" #include "ircons.h" -#include "dbginfo.h" #include "iropt_t.h" #include "irprintf.h" #include "debug.h" @@ -44,7 +43,7 @@ #include "bearch_ppc32_t.h" #include "ppc32_nodes_attr.h" -#include "../arch/archop.h" /* we need this for Min and Max nodes */ +#include "archop.h" #include "ppc32_transform.h" #include "ppc32_new_nodes.h" #include "ppc32_map_regs.h" @@ -78,7 +77,7 @@ ir_mode *get_ppc32_mode_Cond(void) { if (ppc32_mode_Cond) return ppc32_mode_Cond; else { - ppc32_mode_Cond = new_ir_mode("mode_Cond", irms_character, 4, 0, irma_none, 0); + ppc32_mode_Cond = new_ir_mode("mode_Cond", irms_int_number, 4, 0, irma_none, 0); return ppc32_mode_Cond; } } @@ -1259,18 +1258,6 @@ static ir_node *gen_be_FrameAddr(ppc32_transform_env_t *env) { return add; } -/** - * Transforms a StackParam into a ppc Load - * - * @param env The transformation environment - */ -static ir_node *gen_be_StackParam(ppc32_transform_env_t *env) { - ir_node *load = new_rd_ppc32_Lwz(env->dbg, env->irg, env->block, get_irn_n(env->irn, 0), new_NoMem()); - ir_node *proj = new_rd_Proj(env->dbg, env->irg, env->block, load, env->mode, pn_Load_res); - set_ppc32_frame_entity(load, be_get_frame_entity(env->irn)); - return proj; -} - /********************************************************* * _ _ _ @@ -1366,7 +1353,6 @@ void ppc32_register_transformers(void) { BAD(EndExcept); FIRM_OP(be_FrameAddr); - FIRM_OP(be_StackParam); op_Mulh = get_op_Mulh(); if (op_Mulh) FIRM_OP(Mulh); @@ -1433,6 +1419,7 @@ struct tv_ent { static int cmp_tv_ent(const void *a, const void *b, size_t len) { const struct tv_ent *e1 = a; const struct tv_ent *e2 = b; + (void) len; return !(e1->tv == e2->tv); }