Commit ca8f94ec authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Use new_r_*(...) instead of new_rd_*(NULL, ...).

parent cf6fde77
......@@ -668,7 +668,7 @@ static ir_node *gen_Call(ir_node *node)
} else if (sync_arity == 1) {
in[mem_pos] = sync_ins[0];
} else {
in[mem_pos] = new_rd_Sync(NULL, new_block, sync_arity, sync_ins);
in[mem_pos] = new_r_Sync(new_block, sync_arity, sync_ins);
}
in[in_arity] = be_transform_node(callee);
......
......@@ -1722,7 +1722,7 @@ static ir_node *gen_Call(ir_node *node)
} else if (sync_arity == 1) {
in[mem_pos] = sync_ins[0];
} else {
in[mem_pos] = new_rd_Sync(NULL, new_block, sync_arity, sync_ins);
in[mem_pos] = new_r_Sync(new_block, sync_arity, sync_ins);
}
/* TODO: use a generic address matcher here */
......
......@@ -140,7 +140,7 @@ static void rematerialize_or_move(ir_node *flags_needed, ir_node *node,
if (get_irn_mode(copy) == mode_T) {
ir_mode *mode = flag_class->mode;
value = new_rd_Proj(NULL, copy, mode, pn);
value = new_r_Proj(copy, mode, pn);
be_add_missing_keeps_node(copy);
} else {
value = copy;
......
......@@ -893,7 +893,7 @@ static ir_node *fix_mem_proj(ir_node *node, ia32_address_mode_t *am)
if (mode != mode_T) {
set_irn_mode(node, mode_T);
return new_rd_Proj(NULL, node, mode, pn_ia32_res);
return new_r_Proj(node, mode, pn_ia32_res);
} else {
return node;
}
......@@ -3000,10 +3000,10 @@ static ir_node *create_doz(ir_node *psi, ir_node *a, ir_node *b)
} else {
sub = new_node;
set_irn_mode(sub, mode_T);
new_node = new_rd_Proj(NULL, sub, mode, pn_ia32_res);
new_node = new_r_Proj(sub, mode, pn_ia32_res);
}
assert(is_ia32_Sub(sub));
ir_node *eflags = new_rd_Proj(NULL, sub, ia32_mode_gp, pn_ia32_Sub_flags);
ir_node *eflags = new_r_Proj(sub, ia32_mode_gp, pn_ia32_Sub_flags);
dbg_info *dbgi = get_irn_dbg_info(psi);
ir_node *block = get_nodes_block(new_node);
......@@ -3352,7 +3352,7 @@ static ir_node *gen_Mux(ir_node *node)
}
set_am_attributes(load, &am);
return new_rd_Proj(NULL, load, mode_fp, pn_ia32_res);
return new_r_Proj(load, mode_fp, pn_ia32_res);
}
panic("cannot transform floating point Mux");
......@@ -4130,7 +4130,7 @@ static ir_node *gen_ia32_l_LLtoFloat(ir_node *node)
set_am_attributes(fadd, &am);
set_irn_mode(fadd, mode_T);
res = new_rd_Proj(NULL, fadd, mode_fp, pn_ia32_res);
res = new_r_Proj(fadd, mode_fp, pn_ia32_res);
}
return res;
}
......
......@@ -2149,7 +2149,7 @@ static ir_node *gen_Call(ir_node *node)
} else if (sync_arity == 1) {
in[mem_pos] = sync_ins[0];
} else {
in[mem_pos] = new_rd_Sync(NULL, new_block, sync_arity, sync_ins);
in[mem_pos] = new_r_Sync(new_block, sync_arity, sync_ins);
}
if (is_SymConst(callee)) {
......
......@@ -674,7 +674,7 @@ restart:
/* the optimizations expected the true case to jump */
if (get_Proj_proj(lower_cf) == pn_Cond_false) {
ir_node *block = get_nodes_block(replacement);
replacement = new_rd_Not(NULL, block, replacement, mode_b);
replacement = new_r_Not(block, replacement, mode_b);
}
set_Cond_selector(cond, replacement);
......
......@@ -1428,7 +1428,7 @@ static unsigned optimize_phi(ir_node *phi, walk_env_t *wenv)
/* fourth step: create the Store */
store = new_rd_Store(db, block, phiM, ptr, phiD, cons_none);
projM = new_rd_Proj(NULL, store, mode_M, pn_Store_M);
projM = new_r_Proj(store, mode_M, pn_Store_M);
/* rewire memory and kill the old nodes */
for (int i = n - 1; i >= 0; --i) {
......@@ -1444,7 +1444,7 @@ static unsigned optimize_phi(ir_node *phi, walk_env_t *wenv)
/* fifths step: repair exception flow */
if (exc) {
ir_node *projX = new_rd_Proj(NULL, store, mode_X, pn_Store_X_except);
ir_node *projX = new_r_Proj(store, mode_X, pn_Store_X_except);
info->projs[pn_Store_X_except] = projX;
info->exc_block = exc;
......
......@@ -362,8 +362,8 @@ static int reassoc_Mul(ir_node **node)
/* we can only multiplication rules on integer arithmetic */
if (mode_is_int(get_irn_mode(t1)) && mode_is_int(get_irn_mode(t2))) {
ir_graph *irg = get_irn_irg(t1);
in[0] = new_rd_Mul(NULL, block, c, t1, mode);
in[1] = new_rd_Mul(NULL, block, c, t2, mode);
in[0] = new_r_Mul(block, c, t1, mode);
in[1] = new_r_Mul(block, c, t2, mode);
irn = optimize_node(new_ir_node(NULL, irg, block, op, mode, 2, in));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment