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
4ff92a60
Commit
4ff92a60
authored
Feb 21, 2009
by
Moritz Kroll
Browse files
Name cond.pred attribute consistent to getter/setters (-> cond.jmp_pred)
[r25544]
parent
289ebf2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/ir/ir_spec.pl
View file @
4ff92a60
...
...
@@ -341,7 +341,7 @@ Cond => {
},
{
type
=>
"
cond_jmp_predicate
",
name
=>
"
pred
",
name
=>
"
jmp_
pred
",
init
=>
"
COND_JMP_PRED_NONE
",
comment
=>
"
Only for binary Conds: The jump predication.
"
},
...
...
ir/ir/irnode_t.h
View file @
4ff92a60
...
...
@@ -916,12 +916,12 @@ static inline int _is_irn_machine_user(const ir_node *node, unsigned n) {
static
inline
cond_jmp_predicate
_get_Cond_jmp_pred
(
const
ir_node
*
node
)
{
assert
(
_get_irn_op
(
node
)
==
op_Cond
);
return
node
->
attr
.
cond
.
pred
;
return
node
->
attr
.
cond
.
jmp_
pred
;
}
static
inline
void
_set_Cond_jmp_pred
(
ir_node
*
node
,
cond_jmp_predicate
pred
)
{
assert
(
_get_irn_op
(
node
)
==
op_Cond
);
node
->
attr
.
cond
.
pred
=
pred
;
node
->
attr
.
cond
.
jmp_
pred
=
pred
;
}
static
inline
void
*
_get_irn_generic_attr
(
ir_node
*
node
)
{
...
...
ir/ir/irtypes.h
View file @
4ff92a60
...
...
@@ -154,9 +154,9 @@ typedef struct {
/** Cond attributes. */
typedef
struct
{
cond_kind
kind
;
/**< flavor of Cond */
long
default_proj
;
/**< only for non-binary Conds: biggest Proj number, i.e. the one used for default. */
cond_jmp_predicate
pred
;
/**< only for binary Conds: The jump predication. */
cond_kind
kind
;
/**< flavor of Cond */
long
default_proj
;
/**< only for non-binary Conds: biggest Proj number, i.e. the one used for default. */
cond_jmp_predicate
jmp_
pred
;
/**< only for binary Conds: The jump predication. */
}
cond_attr
;
/** Const attributes. */
...
...
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