#include "bitset.h"
#include "debug.h"
-#include "be.h"
+#include "be_t.h"
#include "bearch.h"
#include "benode.h"
#include "belower.h"
TEMPLATE_get_frame_entity,
TEMPLATE_set_frame_offset,
TEMPLATE_get_sp_bias,
- NULL, /* get_inverse */
NULL, /* get_op_estimated_cost */
NULL, /* possible_memory_operand */
NULL, /* perform_memory_operand */
&TEMPLATE_registers[REG_SP], /* stack pointer register */
&TEMPLATE_registers[REG_BP], /* base pointer register */
2, /* power of two stack alignment for calls, 2^2 == 4 */
- NULL, /* main environment */
7, /* costs for a spill instruction */
5, /* costs for a reload instruction */
- true, /* no custom abi handling */
+ true, /* custom abi handling */
},
};
TEMPLATE_free_opcodes();
}
-static arch_env_t *TEMPLATE_begin_codegeneration(const be_main_env_t *env)
+static arch_env_t *TEMPLATE_begin_codegeneration(void)
{
TEMPLATE_isa_t *isa = XMALLOC(TEMPLATE_isa_t);
*isa = TEMPLATE_isa_template;
- be_emit_init(env->file_handle);
- be_gas_begin_compilation_unit(env);
-
return &isa->base;
}
*/
static void TEMPLATE_end_codegeneration(void *self)
{
- TEMPLATE_isa_t *isa = (TEMPLATE_isa_t*)self;
-
- /* emit now all global declarations */
- be_gas_end_compilation_unit(isa->base.main_env);
-
- be_emit_exit();
free(self);
}