make some parameters const
[r4295]
res = (ir_node *) obstack_alloc (irg->obst, node_size);
memset((void *)res, 0, node_size);
res = (ir_node *) obstack_alloc (irg->obst, node_size);
memset((void *)res, 0, node_size);
- res->kind = k_ir_node;
- res->op = op;
- res->mode = mode;
+ res->kind = k_ir_node;
+ res->op = op;
+ res->mode = mode;
if (arity < 0) {
res->in = NEW_ARR_F (ir_node *, 1); /* 1: space for block */
} else {
if (arity < 0) {
res->in = NEW_ARR_F (ir_node *, 1); /* 1: space for block */
} else {
assert (is_atomic_type(tp));
assert (get_type_mode(tp) == get_irn_mode(node));
}
assert (is_atomic_type(tp));
assert (get_type_mode(tp) == get_irn_mode(node));
}
node->attr.con.tp = tp;
}
node->attr.con.tp = tp;
}
-is_unop (ir_node *node) {
- return (node->op->opar == oparity_unary);
+(is_unop)(const ir_node *node) {
+ return __is_unop(node);
-is_binop (ir_node *node) {
- return (node->op->opar == oparity_binary);
+(is_binop)(const ir_node *node) {
+ return __is_binop(node);
-is_Bad (ir_node *node) {
- assert(node);
- if ((node) && get_irn_opcode(node) == iro_Bad)
- return 1;
- return 0;
+(is_Bad)(const ir_node *node) {
+ return __is_Bad(node);
-is_no_Block (ir_node *node) {
- assert(node);
- return (get_irn_opcode(node) != iro_Block);
+(is_no_Block)(const ir_node *node) {
+ return __is_no_Block(node);
-is_Block (ir_node *node) {
- assert(node);
- return (get_irn_opcode(node) == iro_Block);
+(is_Block)(const ir_node *node) {
+ return __is_Block(node);
}
/* returns true if node is a Unknown node. */
int
}
/* returns true if node is a Unknown node. */
int
-is_Unknown (ir_node *node) {
+is_Unknown (const ir_node *node) {
- return (get_irn_opcode(node) == iro_Unknown);
+ return (get_irn_op(node) == op_Unknown);
/* Returns true if the operation manipulates control flow. */
int
/* Returns true if the operation manipulates control flow. */
int
-is_cfop(ir_node *node) {
+is_cfop(const ir_node *node) {
return is_cfopcode(get_irn_op(node));
}
/* Returns true if the operation manipulates interprocedural control flow:
CallBegin, EndReg, EndExcept */
return is_cfopcode(get_irn_op(node));
}
/* Returns true if the operation manipulates interprocedural control flow:
CallBegin, EndReg, EndExcept */
-int is_ip_cfop(ir_node *node) {
+int is_ip_cfop(const ir_node *node) {
return is_ip_cfopcode(get_irn_op(node));
}
/* Returns true if the operation can change the control flow because
of an exception. */
int
return is_ip_cfopcode(get_irn_op(node));
}
/* Returns true if the operation can change the control flow because
of an exception. */
int
-is_fragile_op(ir_node *node) {
+is_fragile_op(const ir_node *node) {
return is_op_fragile(get_irn_op(node));
}
return is_op_fragile(get_irn_op(node));
}
/* Returns true if the operation is a forking control flow operation. */
int
/* Returns true if the operation is a forking control flow operation. */
int
-is_forking_op(ir_node *node) {
+is_forking_op(const ir_node *node) {
return is_op_forking(get_irn_op(node));
}
return is_op_forking(get_irn_op(node));
}