return get_mode_size_bytes(mode);
}
+/**
+ * Returns the libFirm configuration parameter for this backend.
+ */
+static const backend_params *TEMPLATE_get_libfirm_params(void) {
+ static arch_dep_params_t ad = {
+ 1, /* allow subs */
+ 0, /* Muls are fast enough on Firm */
+ 31, /* shift would be ok */
+ 0, /* no Mulhs */
+ 0, /* no Mulhu */
+ 0, /* no Mulh */
+ };
+ static backend_params p = {
+ NULL, /* no additional opcodes */
+ NULL, /* will be set later */
+ 0, /* no dword lowering */
+ NULL, /* no creator function */
+ NULL, /* context for create_intrinsic_fkt */
+ };
+
+ p.dep_param = &ad;
+ return &p;
+}
+
#ifdef WITH_LIBCORE
static void TEMPLATE_register_options(lc_opt_entry_t *ent)
{
TEMPLATE_get_code_generator_if,
TEMPLATE_get_list_sched_selector,
TEMPLATE_get_reg_class_alignment,
+ TEMPLETE_get_libfirm_params,
#ifdef WITH_LIBCORE
TEMPLATE_register_options
#endif
NULL, /* will be set later */
1, /* need dword lowering */
NULL, /* but yet no creator function */
+ NULL, /* context for create_intrinsic_fkt */
};
p.dep_param = &ad;
NULL, /* will be set later */
0, /* no dword lowering */
NULL, /* no creator function */
+ NULL, /* context for create_intrinsic_fkt */
};
p.dep_param = &ad;
NULL, /* will be set later */
1, /* need dword lowering */
NULL, /* but yet no creator function */
+ NULL, /* context for create_intrinsic_fkt */
};
p.dep_param = &ad;
NULL, /* will be set later */
1, /* need dword lowering */
NULL, /* but yet no creator function */
+ NULL, /* context for create_intrinsic_fkt */
};
p.dep_param = &ad;