X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Farm%2Farm_transform.c;h=c2413d9c11f7bc2d90527bcfd019903f660a7778;hb=3c3425a50a1d721b74a015c6812257e32feeac85;hp=95deec9e69bfbb91d46e2d8f3a3800951702954f;hpb=a4a480ab014d4443ca7b161c5048734f4d736caf;p=libfirm diff --git a/ir/be/arm/arm_transform.c b/ir/be/arm/arm_transform.c index 95deec9e6..c2413d9c1 100644 --- a/ir/be/arm/arm_transform.c +++ b/ir/be/arm/arm_transform.c @@ -738,7 +738,7 @@ static ir_node *make_shift(ir_node *node, match_flags_t flags, ir_node *new_op2; if (get_mode_modulo_shift(mode) != 32) - panic("modulo shift!=32 not supported by arm backend"); + panic("modulo shift!=32 not supported"); if (flags & MATCH_SIZE_NEUTRAL) { op1 = arm_skip_downconv(op1); @@ -942,7 +942,7 @@ static ir_node *gen_Load(ir_node *node) ir_node *new_load = NULL; if (get_Load_unaligned(node) == align_non_aligned) - panic("arm: unaligned Loads not supported yet"); + panic("unaligned Loads not supported yet"); if (mode_is_float(mode)) { if (USE_FPA(isa)) { @@ -984,7 +984,7 @@ static ir_node *gen_Store(ir_node *node) ir_node *new_store = NULL; if (get_Store_unaligned(node) == align_non_aligned) - panic("arm: unaligned Stores not supported yet"); + panic("unaligned Stores not supported yet"); if (mode_is_float(mode)) { if (USE_FPA(isa)) { @@ -1293,7 +1293,7 @@ static ir_node *gen_Builtin(ir_node *node) case ir_bk_inner_trampoline: break; } - panic("Builtin %s not implemented in ARM", get_builtin_kind_name(kind)); + panic("Builtin %s not implemented", get_builtin_kind_name(kind)); } /** @@ -1326,7 +1326,7 @@ static ir_node *gen_Proj_Builtin(ir_node *proj) case ir_bk_inner_trampoline: break; } - panic("Builtin %s not implemented in ARM", get_builtin_kind_name(kind)); + panic("Builtin %s not implemented", get_builtin_kind_name(kind)); } static ir_node *gen_Proj_Load(ir_node *node) @@ -1398,16 +1398,6 @@ static ir_node *gen_Proj_Div(ir_node *node) panic("Unsupported Proj from Div"); } -/** - * Transform the Projs from a Cmp. - */ -static ir_node *gen_Proj_Cmp(ir_node *node) -{ - (void) node; - /* we should only be here in case of a Mux node */ - panic("Mux NYI"); -} - static ir_node *gen_Proj_Start(ir_node *node) { ir_node *block = get_nodes_block(node); @@ -1580,8 +1570,6 @@ static ir_node *gen_Proj(ir_node *node) return gen_Proj_CopyB(node); case iro_Div: return gen_Proj_Div(node); - case iro_Cmp: - return gen_Proj_Cmp(node); case iro_Start: return gen_Proj_Start(node); case iro_Cond: @@ -1695,7 +1683,6 @@ static void create_stacklayout(ir_graph *irg) layout->frame_type = get_irg_frame_type(irg); layout->between_type = arm_get_between_type(); layout->arg_type = arg_type; - layout->param_map = NULL; /* TODO */ layout->initial_offset = 0; layout->initial_bias = 0; layout->sp_relative = true; @@ -1754,7 +1741,7 @@ static ir_node *get_stack_pointer_for(ir_node *node) } be_transform_node(stack_pred); - stack = (ir_node*)pmap_get(node_to_stack, stack_pred); + stack = pmap_get(ir_node, node_to_stack, stack_pred); if (stack == NULL) { return get_stack_pointer_for(stack_pred); }