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
9639e890
Commit
9639e890
authored
May 24, 2006
by
Christoph Mallon
Browse files
add exchange_cdep()
[r7797]
parent
46de9c58
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ana/cdep.c
View file @
9639e890
...
...
@@ -18,6 +18,14 @@ cdep* find_cdep(const ir_node* block)
}
void
exchange_cdep
(
ir_node
*
old
,
const
ir_node
*
new
)
{
cdep
*
cdep
=
find_cdep
(
new
);
pmap_insert
(
cdep_map
,
old
,
cdep
);
}
static
void
add_cdep
(
ir_node
*
node
,
ir_node
*
dep_on
)
{
cdep
*
dep
=
find_cdep
(
node
);
...
...
ir/ana/cdep.h
View file @
9639e890
...
...
@@ -14,6 +14,8 @@ void free_cdep(ir_graph*);
cdep
*
find_cdep
(
const
ir_node
*
block
);
void
exchange_cdep
(
ir_node
*
old
,
const
ir_node
*
new
);
int
is_cdep_on
(
const
ir_node
*
dependee
,
const
ir_node
*
candidate
);
int
is_iterated_cdep_on
(
ir_node
*
dependee
,
ir_node
*
candidate
);
...
...
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