Commit 70c81a6d authored by Matthias Braun's avatar Matthias Braun
Browse files

rename Free argument from size to count to be consistent with Alloc

parent 573e42c2
......@@ -948,11 +948,11 @@ static ir_node *adjust_free(be_abi_irg_t *env, ir_node *free, ir_node *curr_sp)
if (type != firm_unknown_type && get_type_size_bytes(type) != 1) {
ir_tarval *tv = new_tarval_from_long(get_type_size_bytes(type), mode_Iu);
ir_node *cnst = new_rd_Const(dbg, irg, tv);
ir_node *mul = new_rd_Mul(dbg, block, get_Free_size(free),
ir_node *mul = new_rd_Mul(dbg, block, get_Free_count(free),
cnst, mode_Iu);
size = mul;
} else {
size = get_Free_size(free);
size = get_Free_count(free);
}
stack_alignment = 1 << arch_env->stack_alignment;
......
......@@ -1550,7 +1550,7 @@ static int verify_node_Free(const ir_node *n)
ir_mode *mymode = get_irn_mode(n);
ir_mode *op1mode = get_irn_mode(get_Free_mem(n));
ir_mode *op2mode = get_irn_mode(get_Free_ptr(n));
ir_mode *op3mode = get_irn_mode(get_Free_size(n));
ir_mode *op3mode = get_irn_mode(get_Free_count(n));
ASSERT_AND_RET_DBG(
/* Free: BB x M x ref x int_u --> M */
......
......@@ -503,7 +503,7 @@ class Free(Op):
ins = [
("mem", "memory dependency" ),
("ptr", "pointer to the object to free"),
("size", "number of objects to allocate" ),
("count", "number of objects to allocate" ),
]
mode = "mode_M"
flags = [ "uses_memory" ]
......
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