#include "../besched_t.h"
#include "../be.h"
#include "../beabi.h"
+#include "../bemodule.h"
#include "bearch_TEMPLATE_t.h"
* This function is called by the generic backend to correct offsets for
* nodes accessing the stack.
*/
-static void TEMPLATE_set_stack_bias(const void *self, ir_node *irn, int bias) {
+static void TEMPLATE_set_frame_offset(const void *self, ir_node *irn, int offset) {
/* TODO: correct offset if irn accesses the stack */
}
+static int TEMPLATE_get_sp_bias(const void *self, const ir_node *irn) {
+ return 0;
+}
+
/* fill register allocator interface */
static const arch_irn_ops_if_t TEMPLATE_irn_ops_if = {
TEMPLATE_get_flags,
TEMPLATE_get_frame_entity,
TEMPLATE_set_frame_entity,
- TEMPLATE_set_stack_bias
+ TEMPLATE_set_frame_offset,
+ TEMPLATE_get_sp_bias,
NULL, /* get_inverse */
NULL, /* get_op_estimated_cost */
NULL, /* possible_memory_operand */
return &p;
}
-#ifdef WITH_LIBCORE
-static void TEMPLATE_register_options(lc_opt_entry_t *ent)
+void be_init_arch_TEMPLATE()
{
}
-#endif /* WITH_LIBCORE */
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_arch_TEMPLATE);
const arch_isa_if_t TEMPLATE_isa_if = {
TEMPLATE_init,
TEMPLATE_get_list_sched_selector,
TEMPLATE_get_reg_class_alignment,
TEMPLATE_get_libfirm_params,
-#ifdef WITH_LIBCORE
- TEMPLATE_register_options
-#endif
};