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
a09bdfae
Commit
a09bdfae
authored
Aug 24, 2008
by
Michael Beck
Browse files
added skip_Pin()
[r21401]
parent
ab1d7fcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
a09bdfae
...
@@ -1238,9 +1238,11 @@ ir_node *skip_Id(ir_node *node); /* Old name is skip_nop(). */
...
@@ -1238,9 +1238,11 @@ ir_node *skip_Id(ir_node *node); /* Old name is skip_nop(). */
/** Returns corresponding operand of Tuple if node is a Proj from
/** Returns corresponding operand of Tuple if node is a Proj from
a Tuple. */
a Tuple. */
ir_node
*
skip_Tuple
(
ir_node
*
node
);
ir_node
*
skip_Tuple
(
ir_node
*
node
);
/**
r
eturns operand of node if node is a Cast. */
/**
R
eturns operand of node if node is a Cast. */
ir_node
*
skip_Cast
(
ir_node
*
node
);
ir_node
*
skip_Cast
(
ir_node
*
node
);
const
ir_node
*
skip_Cast_const
(
const
ir_node
*
node
);
const
ir_node
*
skip_Cast_const
(
const
ir_node
*
node
);
/** Returns operand of node if node is a Pin. */
ir_node
*
skip_Pin
(
ir_node
*
node
);
/** Returns operand of node if node is a Confirm */
/** Returns operand of node if node is a Confirm */
ir_node
*
skip_Confirm
(
ir_node
*
node
);
ir_node
*
skip_Confirm
(
ir_node
*
node
);
/** Skip all high-level Operations (including Cast, Confirm). */
/** Skip all high-level Operations (including Cast, Confirm). */
...
...
ir/ir/irnode.c
View file @
a09bdfae
...
@@ -2530,6 +2530,13 @@ const ir_node *skip_Cast_const(const ir_node *node) {
...
@@ -2530,6 +2530,13 @@ const ir_node *skip_Cast_const(const ir_node *node) {
return
node
;
return
node
;
}
}
/* returns operand of node if node is a Pin */
ir_node
*
skip_Pin
(
ir_node
*
node
)
{
if
(
is_Pin
(
node
))
return
get_Pin_op
(
node
);
return
node
;
}
/* returns operand of node if node is a Confirm */
/* returns operand of node if node is a Confirm */
ir_node
*
skip_Confirm
(
ir_node
*
node
)
{
ir_node
*
skip_Confirm
(
ir_node
*
node
)
{
if
(
get_irn_op
(
node
)
==
op_Confirm
)
if
(
get_irn_op
(
node
)
==
op_Confirm
)
...
...
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