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
332cda9a
Commit
332cda9a
authored
Feb 27, 2012
by
Christoph Mallon
Browse files
Remove the questionable and unused functions find_value() and r_find_value().
parent
51dafdd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/ircons.h
View file @
332cda9a
...
...
@@ -930,21 +930,6 @@ FIRM_API void set_value(int pos, ir_node *value);
/** Sets current value of a variable in a given graph */
FIRM_API
void
set_r_value
(
ir_graph
*
irg
,
int
pos
,
ir_node
*
value
);
/**
* Find the value number for a node in the current block.
*
* @param value the searched value
*
* @return the value number of the value or -1 if this value has
* no value number in the current block.
*/
FIRM_API
int
find_value
(
ir_node
*
value
);
/**
* Find value number for a node in the current block of a given graph
* @see find_value()
*/
FIRM_API
int
r_find_value
(
ir_graph
*
irg
,
ir_node
*
value
);
/** Returns the current memory state.
*
* Use this function to obtain the last definition of the memory
...
...
ir/ir/ircons.c
View file @
332cda9a
...
...
@@ -624,23 +624,6 @@ void set_value(int pos, ir_node *value)
set_r_value
(
current_ir_graph
,
pos
,
value
);
}
int
r_find_value
(
ir_graph
*
irg
,
ir_node
*
value
)
{
size_t
i
;
ir_node
*
bl
=
irg
->
current_block
;
for
(
i
=
ARR_LEN
(
bl
->
attr
.
block
.
graph_arr
);
i
>
1
;)
{
if
(
bl
->
attr
.
block
.
graph_arr
[
--
i
]
==
value
)
return
i
-
1
;
}
return
-
1
;
}
int
find_value
(
ir_node
*
value
)
{
return
r_find_value
(
current_ir_graph
,
value
);
}
ir_node
*
get_r_store
(
ir_graph
*
irg
)
{
assert
(
get_irg_phase_state
(
irg
)
==
phase_building
);
...
...
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