Commit c6818545 authored by Moritz Kroll's avatar Moritz Kroll
Browse files

Renamed attr.divmod.res_mode to attr.divmod.resmode

[r25767]
parent 2dc559c3
......@@ -104,7 +104,7 @@ new_bd_##instr(dbg_info *db, ir_node *block, \
in[2] = op2; \
res = new_ir_node(db, irg, block, op_##instr, mode_T, 3, in); \
res->attr.divmod.exc.pin_state = state; \
res->attr.divmod.res_mode = mode; \
res->attr.divmod.resmode = mode; \
res->attr.divmod.no_remainder = 0; \
res = optimize_node(res); \
IRN_VRFY_IRG(res, irg); \
......@@ -411,7 +411,7 @@ static ir_node *new_bd_DivRL(dbg_info *db, ir_node *block,
in[2] = op2;
res = new_ir_node(db, irg, block, op_Div, mode_T, 3, in);
res->attr.divmod.exc.pin_state = state;
res->attr.divmod.res_mode = mode;
res->attr.divmod.resmode = mode;
res->attr.divmod.no_remainder = 1;
res = optimize_node(res);
IRN_VRFY_IRG(res, irg);
......
......@@ -1577,12 +1577,12 @@ BINOP_MEM(OP) \
\
ir_mode *get_##OP##_resmode(const ir_node *node) { \
assert(is_##OP(node)); \
return node->attr.divmod.res_mode; \
return node->attr.divmod.resmode; \
} \
\
void set_##OP##_resmode(ir_node *node, ir_mode *mode) { \
assert(is_##OP(node)); \
node->attr.divmod.res_mode = mode; \
node->attr.divmod.resmode = mode; \
}
......
......@@ -6002,7 +6002,7 @@ static int node_cmp_attr_Div(ir_node *a, ir_node *b) {
const divmod_attr *ma = get_irn_divmod_attr(a);
const divmod_attr *mb = get_irn_divmod_attr(b);
return ma->exc.pin_state != mb->exc.pin_state ||
ma->res_mode != mb->res_mode ||
ma->resmode != mb->resmode ||
ma->no_remainder != mb->no_remainder;
} /* node_cmp_attr_Div */
......@@ -6011,7 +6011,7 @@ static int node_cmp_attr_DivMod(ir_node *a, ir_node *b) {
const divmod_attr *ma = get_irn_divmod_attr(a);
const divmod_attr *mb = get_irn_divmod_attr(b);
return ma->exc.pin_state != mb->exc.pin_state ||
ma->res_mode != mb->res_mode;
ma->resmode != mb->resmode;
} /* node_cmp_attr_DivMod */
/** Compares the attributes of two Mod nodes. */
......@@ -6019,7 +6019,7 @@ static int node_cmp_attr_Mod(ir_node *a, ir_node *b) {
const divmod_attr *ma = get_irn_divmod_attr(a);
const divmod_attr *mb = get_irn_divmod_attr(b);
return ma->exc.pin_state != mb->exc.pin_state ||
ma->res_mode != mb->res_mode;
ma->resmode != mb->resmode;
} /* node_cmp_attr_Mod */
/** Compares the attributes of two Quot nodes. */
......@@ -6027,7 +6027,7 @@ static int node_cmp_attr_Quot(ir_node *a, ir_node *b) {
const divmod_attr *ma = get_irn_divmod_attr(a);
const divmod_attr *mb = get_irn_divmod_attr(b);
return ma->exc.pin_state != mb->exc.pin_state ||
ma->res_mode != mb->res_mode;
ma->resmode != mb->resmode;
} /* node_cmp_attr_Quot */
/** Compares the attributes of two Confirm nodes. */
......
......@@ -290,7 +290,7 @@ typedef struct {
/** Div/Mod/DivMod/Quot attribute. */
typedef struct {
except_attr exc; /**< The exception attribute. MUST be the first one. */
ir_mode *res_mode; /**< Result mode for the division. */
ir_mode *resmode; /**< Result mode for the division. */
char no_remainder; /**< Set, if known that a division can be done without a remainder. */
} divmod_attr;
......
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