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

Renamed is_Div_remainderless to get_Div_no_remainder

[r25592]
parent 1833cfd9
......@@ -774,7 +774,7 @@ ir_node *get_Div_mem(const ir_node *node);
void set_Div_mem(ir_node *node, ir_node *mem);
ir_mode *get_Div_resmode(const ir_node *node);
void set_Div_resmode(ir_node *node, ir_mode *mode);
int is_Div_remainderless(const ir_node *node);
int get_Div_no_remainder(const ir_node *node);
/**
* Projection numbers for Div: use for Proj nodes!
......
......@@ -88,6 +88,7 @@
#define True pn_Cmp_True
#define get_Cond_defaultProj(cond) get_Cond_default_proj(cond)
#define is_Div_remainderless(div) get_Div_no_remainder(div)
/* irmode.h */
#define get_ident_of_mode get_mode_ident
......
......@@ -928,7 +928,7 @@ ir_node *arch_dep_replace_div_by_const(ir_node *irn) {
ir_node *curr = left;
/* create the correction code for signed values only if there might be a remainder */
if (! is_Div_remainderless(irn)) {
if (! get_Div_no_remainder(irn)) {
if (k != 1) {
k_node = new_Const_long(mode_Iu, k - 1);
curr = new_rd_Shrs(dbg, current_ir_graph, block, left, k_node, mode);
......
......@@ -818,7 +818,7 @@ int dump_node_opcode(FILE *F, ir_node *n)
break;
case iro_Div:
fprintf(F, "%s", get_irn_opname(n));
if (is_Div_remainderless(n))
if (get_Div_no_remainder(n))
fprintf(F, "RL");
fprintf(F, "[%s]", get_mode_name_ex(get_Div_resmode(n), &bad));
break;
......
......@@ -1603,7 +1603,7 @@ BINOP(Cmp)
UNOP(Conv)
UNOP(Cast)
int is_Div_remainderless(const ir_node *node) {
int get_Div_no_remainder(const ir_node *node) {
assert(is_Div(node));
return node->attr.divmod.no_remainder;
}
......
......@@ -288,7 +288,7 @@ static void check_opcode(const partition_t *Z) {
key.u.intVal = get_Conv_strict(irn);
break;
case iro_Div:
key.u.intVal = is_Div_remainderless(irn);
key.u.intVal = get_Div_no_remainder(irn);
break;
case iro_Block:
key.u.block = irn;
......@@ -319,7 +319,7 @@ static void check_opcode(const partition_t *Z) {
assert(key.u.intVal == get_Conv_strict(irn));
break;
case iro_Div:
assert(key.u.intVal == is_Div_remainderless(irn));
assert(key.u.intVal == get_Div_no_remainder(irn));
break;
case iro_Block:
assert(key.u.block == irn);
......@@ -1673,7 +1673,7 @@ static void *lambda_opcode(const node_t *node, environment_t *env) {
key.u.intVal = get_Conv_strict(irn);
break;
case iro_Div:
key.u.intVal = is_Div_remainderless(irn);
key.u.intVal = get_Div_no_remainder(irn);
break;
case iro_Block:
/*
......
......@@ -413,7 +413,7 @@ static opcode_key_t *opcode(const node_t *node, environment_t *env) {
key.mode = get_Load_mode(irn);
break;
case iro_Div:
key.u.intVal = is_Div_remainderless(irn);
key.u.intVal = get_Div_no_remainder(irn);
break;
case iro_Builtin:
key.u.intVal = get_Builtin_kind(irn);
......
Supports Markdown
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