#include "be.h"
#include "be_t.h"
#include "beirgmod.h"
-#include "be_dbgout.h"
#include "beblocksched.h"
#include "bespillutil.h"
#include "bespillslots.h"
}
}
-/**
- * The IA32 ABI callback object.
- */
-typedef struct {
- be_abi_call_flags_bits_t flags; /**< The call flags. */
- ir_graph *irg; /**< The associated graph. */
-} ia32_abi_env_t;
-
static ir_entity *ia32_get_frame_entity(const ir_node *irn)
{
return is_ia32_irn(irn) ? get_ia32_frame_ent(irn) : NULL;
*/
static void ia32_init(void)
{
- ir_mode *mode_long_long;
- ir_mode *mode_unsigned_long_long;
- ir_type *type_long_long;
- ir_type *type_unsigned_long_long;
+ ir_mode *mode_long_long;
+ ir_mode *mode_unsigned_long_long;
+ ir_type *type_long_long;
+ ir_type *type_unsigned_long_long;
ia32_setup_cg_config();
}
ia32_register_init();
+ obstack_init(&opcodes_obst);
ia32_create_opcodes(&ia32_irn_ops);
}
between_type = NULL;
}
ia32_free_opcodes();
+ obstack_free(&opcodes_obst, NULL);
}
/**
be_abi_call_flags_t call_flags = be_abi_call_get_flags(abi);
/* set abi flags for calls */
- call_flags.bits.store_args_sequential = 0;
/* call_flags.bits.try_omit_fp not changed: can handle both settings */
- call_flags.bits.fp_free = 0; /* the frame pointer is fixed in IA32 */
- call_flags.bits.call_has_imm = 0; /* No call immediate, we handle this by ourselves */
+ call_flags.bits.call_has_imm = false; /* No call immediate, we handle this by ourselves */
/* set parameter passing style */
be_abi_call_set_flags(abi, call_flags, &ia32_abi_callbacks);