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
64eae41a
Commit
64eae41a
authored
May 24, 2006
by
Christoph Mallon
Browse files
Add is_cdep_on
[r7795]
parent
85b5dacc
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ana/cdep.c
View file @
64eae41a
...
...
@@ -134,6 +134,17 @@ void free_cdep(ir_graph* irg)
}
int
is_cdep_on
(
const
ir_node
*
dependee
,
const
ir_node
*
candidate
)
{
const
cdep
*
dep
;
for
(
dep
=
find_cdep
(
dependee
);
dep
!=
NULL
;
dep
=
dep
->
next
)
{
if
(
dep
->
node
==
candidate
)
return
1
;
}
return
0
;
}
int
is_iterated_cdep_on
(
ir_node
*
dependee
,
ir_node
*
candidate
)
{
const
cdep
*
dep
;
...
...
ir/ana/cdep.h
View file @
64eae41a
...
...
@@ -14,6 +14,8 @@ void free_cdep(ir_graph*);
cdep
*
find_cdep
(
const
ir_node
*
block
);
int
is_cdep_on
(
const
ir_node
*
dependee
,
const
ir_node
*
candidate
);
int
is_iterated_cdep_on
(
ir_node
*
dependee
,
ir_node
*
candidate
);
ir_node
*
get_unique_cdep
(
const
ir_node
*
block
);
...
...
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