#include "array.h"
#include "../beirgmod.h"
-#include "../bearch_t.h"
+#include "../bearch.h"
#include "../besched.h"
#include "../beabi.h"
-#include "../benode_t.h"
+#include "../benode.h"
#include "../bestate.h"
#include "../beutil.h"
#include "../bessaconstr.h"
-#include "../beirg_t.h"
+#include "../beirg.h"
static ir_entity *fpcw_round = NULL;
static ir_entity *fpcw_truncate = NULL;
static ir_entity *create_ent(int value, const char *name)
{
ir_mode *mode = mode_Hu;
- ir_type *type = new_type_primitive(new_id_from_str("_fpcw_type"), mode);
+ ir_type *type = new_type_primitive(mode);
ir_type *glob = get_glob_type();
ir_graph *cnst_irg;
ir_entity *ent;
set_entity_allocation(ent, allocation_static);
cnst_irg = get_const_code_irg();
- cnst = new_r_Const(cnst_irg, mode, tv);
+ cnst = new_r_Const(cnst_irg, tv);
set_atomic_ent_value(ent, cnst);
return ent;
set_ia32_ls_mode(spill, mode_Iu);
set_ia32_use_frame(spill);
- sched_add_after(after, spill);
+ sched_add_after(skip_Proj(after), spill);
}
return spill;
set_ia32_use_frame(load);
sched_add_before(before, load);
- load_res = new_r_Proj(irg, block, load, mode_Iu, pn_ia32_Load_res);
+ load_res = new_r_Proj(block, load, mode_Iu, pn_ia32_Load_res);
/* TODO: make the actual mode configurable in ChangeCW... */
or_const = new_bd_ia32_Immediate(NULL, get_irg_start_block(irg),
- NULL, 0, 3072);
+ NULL, 0, 0, 3072);
arch_set_irn_register(or_const, &ia32_gp_regs[REG_GP_NOREG]);
or = new_bd_ia32_Or(NULL, block, noreg, noreg, nomem, load_res,
or_const);