X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fbe%2FTEMPLATE%2Fbearch_TEMPLATE.c;h=29ab627b9679d29550d930b6e8c5188805df6377;hb=c1a64deaae21f9a42a3b18bf577655599ef14a00;hp=58811e3a37cfd72812b35c766d40b41995a7e2b8;hpb=5609f2c7223b8482d8c2d9d79163608e6eec7cc0;p=libfirm diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c index 58811e3a3..29ab627b9 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE.c +++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c @@ -154,6 +154,11 @@ static void TEMPLATE_init(void) TEMPLATE_create_opcodes(&TEMPLATE_irn_ops); } +static void TEMPLATE_finish(void) +{ + TEMPLATE_free_opcodes(); +} + static arch_env_t *TEMPLATE_begin_codegeneration(const be_main_env_t *env) { TEMPLATE_isa_t *isa = XMALLOC(TEMPLATE_isa_t); @@ -225,10 +230,7 @@ static void TEMPLATE_get_call_abi(ir_type *method_type, be_abi_call_t *abi) be_abi_call_flags_t call_flags; /* set abi flags for calls */ - call_flags.bits.store_args_sequential = 1; - call_flags.bits.try_omit_fp = 1; - call_flags.bits.fp_free = 0; - call_flags.bits.call_has_imm = 1; + call_flags.bits.call_has_imm = true; /* set stack parameter passing style */ be_abi_call_set_flags(abi, call_flags, &TEMPLATE_abi_callbacks); @@ -356,6 +358,7 @@ static int TEMPLATE_register_saved_by(const arch_register_t *reg, int callee) const arch_isa_if_t TEMPLATE_isa_if = { TEMPLATE_init, + TEMPLATE_finish, TEMPLATE_get_backend_params, TEMPLATE_lower_for_target, TEMPLATE_parse_asm_constraint,