return 0;
}
-static entity *mips_get_frame_entity(const void *self, const ir_node *irn) {
+static ir_entity *mips_get_frame_entity(const void *self, const ir_node *irn) {
if(is_mips_load_r(irn) || is_mips_store_r(irn)) {
mips_attr_t *attr = get_mips_attr(irn);
return NULL;
}
-static void mips_set_frame_entity(const void *self, ir_node *irn, entity *ent) {
+static void mips_set_frame_entity(const void *self, ir_node *irn, ir_entity *ent) {
mips_attr_t *attr = get_mips_attr(irn);
assert(is_mips_load_r(irn) || is_mips_store_r(irn));
attr->stack_entity = ent;
free(cg);
}
-static void *mips_cg_init(const be_irg_t *birg);
+static void *mips_cg_init(be_irg_t *birg);
static const arch_code_generator_if_t mips_code_gen_if = {
mips_cg_init,
/**
* Initializes the code generator.
*/
-static void *mips_cg_init(const be_irg_t *birg) {
+static void *mips_cg_init(be_irg_t *birg) {
mips_isa_t *isa = (mips_isa_t *)birg->main_env->arch_env->isa;
mips_code_gen_t *cg = xmalloc(sizeof(*cg));
static ir_type *debug_between_type = NULL;
static ir_type *opt_between_type = NULL;
- static entity *old_fp_ent = NULL;
+ static ir_entity *old_fp_ent = NULL;
if(env->debug && debug_between_type == NULL) {
- entity *a0_ent, *a1_ent, *a2_ent, *a3_ent;
- entity *ret_addr_ent;
+ ir_entity *a0_ent, *a1_ent, *a2_ent, *a3_ent;
+ ir_entity *ret_addr_ent;
ir_type *ret_addr_type = new_type_primitive(new_id_from_str("return_addr"), mode_P);
ir_type *old_fp_type = new_type_primitive(new_id_from_str("fp"), mode_P);
ir_type *old_param_type = new_type_primitive(new_id_from_str("param"), mode_Iu);
set_type_size_bytes(debug_between_type, 24);
} else if(!env->debug && opt_between_type == NULL) {
ir_type *old_fp_type = new_type_primitive(new_id_from_str("fp"), mode_P);
- entity *old_fp_ent;
+ ir_entity *old_fp_ent;
opt_between_type = new_type_class(new_id_from_str("mips_between_type"));
old_fp_ent = new_entity(opt_between_type, new_id_from_str("old_fp"), old_fp_type);