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
2f2aa72f
Commit
2f2aa72f
authored
Dec 14, 2006
by
Matthias Braun
Browse files
added a skip_Proj_const...
[r8460]
parent
9db0e964
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
2f2aa72f
...
...
@@ -2376,11 +2376,25 @@ get_irn_irg(const ir_node *node) {
ir_node
*
skip_Proj
(
ir_node
*
node
)
{
/* don't assert node !!! */
if
(
node
!=
NULL
&&
is_Proj
(
node
))
{
return
get_Proj_pred
(
node
);
}
else
{
return
(
ir_node
*
)
node
;
}
if
(
node
==
NULL
)
return
NULL
;
if
(
is_Proj
(
node
))
node
=
get_Proj_pred
(
node
);
return
node
;
}
const
ir_node
*
skip_Proj_const
(
const
ir_node
*
node
)
{
/* don't assert node !!! */
if
(
node
==
NULL
)
return
NULL
;
if
(
is_Proj
(
node
))
node
=
get_Proj_pred
(
node
);
return
node
;
}
ir_node
*
...
...
ir/ir/irnode.h
View file @
2f2aa72f
...
...
@@ -1111,6 +1111,8 @@ void set_Pin_op(ir_node *pin, ir_node *node);
/** returns operand of node if node is a Proj. */
ir_node
*
skip_Proj
(
ir_node
*
node
);
/** returns operand of node if node is a Proj. */
const
ir_node
*
skip_Proj_const
(
const
ir_node
*
node
);
/** returns operand of node if node is a Id */
ir_node
*
skip_Id
(
ir_node
*
node
);
/* Old name is skip_nop(). */
/** returns corresponding operand of Tuple if node is a Proj from
...
...
Write
Preview
Supports
Markdown
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