From c68185456717caf4ddeca360dfaea2e743d349bf Mon Sep 17 00:00:00 2001 From: Moritz Kroll Date: Thu, 2 Apr 2009 20:53:59 +0000 Subject: [PATCH] Renamed attr.divmod.res_mode to attr.divmod.resmode [r25767] --- ir/ir/ircons.c | 4 ++-- ir/ir/irnode.c | 4 ++-- ir/ir/iropt.c | 8 ++++---- ir/ir/irtypes.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ir/ir/ircons.c b/ir/ir/ircons.c index c72760b7f..8e5350d3c 100644 --- a/ir/ir/ircons.c +++ b/ir/ir/ircons.c @@ -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); diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 4e772d919..b25e89a44 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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; \ } diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 22a9bd1e2..25d0cd8a1 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -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. */ diff --git a/ir/ir/irtypes.h b/ir/ir/irtypes.h index 65b0696be..2b6bf7f90 100644 --- a/ir/ir/irtypes.h +++ b/ir/ir/irtypes.h @@ -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; -- 2.20.1