Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c6818545
Commit
c6818545
authored
Apr 02, 2009
by
Moritz Kroll
Browse files
Renamed attr.divmod.res_mode to attr.divmod.resmode
[r25767]
parent
2dc559c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
c6818545
...
...
@@ -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
);
...
...
ir/ir/irnode.c
View file @
c6818545
...
...
@@ -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;
\
}
...
...
ir/ir/iropt.c
View file @
c6818545
...
...
@@ -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. */
...
...
ir/ir/irtypes.h
View file @
c6818545
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment