Commit 4ff92a60 authored by Moritz Kroll's avatar Moritz Kroll
Browse files

Name cond.pred attribute consistent to getter/setters (-> cond.jmp_pred)

[r25544]
parent 289ebf2e
......@@ -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."
},
......
......@@ -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) {
......
......@@ -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. */
......
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