Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5781e98f
Commit
5781e98f
authored
Oct 28, 2014
by
Christoph Mallon
Browse files
ir: Provide an inline implementation of get_irn_in().
parent
c59fdbff
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
5781e98f
...
...
@@ -143,11 +143,6 @@ int (get_irn_arity)(const ir_node *node)
return
get_irn_arity_
(
node
);
}
ir_node
**
get_irn_in
(
const
ir_node
*
node
)
{
return
node
->
in
;
}
void
set_irn_in
(
ir_node
*
const
node
,
int
const
arity
,
ir_node
*
const
*
const
in
)
{
assert
(
node
!=
NULL
&&
node
->
kind
==
k_ir_node
);
...
...
ir/ir/irnode_t.h
View file @
5781e98f
...
...
@@ -86,7 +86,10 @@
* Note that this function returns the whole in array including the
* block predecessor. So, it is NOT symmetric with set_irn_in().
*/
ir_node
**
get_irn_in
(
const
ir_node
*
node
);
static
inline
ir_node
**
get_irn_in
(
ir_node
const
*
const
node
)
{
return
node
->
in
;
}
/*-------------------------------------------------------------------*/
/* These function are most used in libfirm. Give them as static */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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