Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
70c81a6d
Commit
70c81a6d
authored
Aug 23, 2011
by
Matthias Braun
Browse files
rename Free argument from size to count to be consistent with Alloc
parent
573e42c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
70c81a6d
...
...
@@ -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
;
...
...
ir/ir/irverify.c
View file @
70c81a6d
...
...
@@ -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 */
...
...
scripts/ir_spec.py
View file @
70c81a6d
...
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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