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
bfbb4c3a
Commit
bfbb4c3a
authored
Jan 16, 2007
by
Christian Würdig
Browse files
added be_kill_node function
parent
c086f221
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/beutil.c
View file @
bfbb4c3a
...
...
@@ -189,6 +189,23 @@ unsigned get_num_reachable_nodes(ir_graph *irg) {
return
num
;
}
/**
* Sets all node inputs to BAD node.
*/
void
be_kill_node
(
ir_node
*
irn
)
{
int
i
;
ir_graph
*
irg
;
if
(
is_Bad
(
irn
))
return
;
irg
=
get_irn_irg
(
irn
);
for
(
i
=
get_irn_arity
(
irn
)
-
1
;
i
>=
0
;
--
i
)
{
set_irn_n
(
irn
,
i
,
get_irg_bad
(
irg
));
}
}
/* FIXME: not used. can be deleted? */
ir_node
*
dom_up_search
(
pset
*
accept
,
ir_node
*
start_point_exclusive
)
{
ir_node
*
irn
,
*
idom
;
...
...
ir/be/beutil.h
View file @
bfbb4c3a
...
...
@@ -116,6 +116,12 @@ void be_dump(ir_graph *irg, const char *suffix, void (*dumper)(ir_graph *, const
*/
unsigned
get_num_reachable_nodes
(
ir_graph
*
irg
);
/**
* Sets all node inputs to BAD node.
* @param irn The node to be killed.
*/
void
be_kill_node
(
ir_node
*
irn
);
/**
* Search for an irn in @p accept.
* The search is started at @p start_point_exclusive and continues upwards the dom-tree
...
...
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