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
7b40ebf3
Commit
7b40ebf3
authored
Dec 13, 2004
by
Sebastian Hack
Browse files
constified is_Phi
[r4642]
parent
15f2e7ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
7b40ebf3
...
...
@@ -1390,7 +1390,7 @@ set_binop_right (ir_node *node, ir_node *right) {
assert
(
node
->
op
->
opar
==
oparity_binary
);
}
int
is_Phi
(
ir_node
*
n
)
{
int
is_Phi
(
const
ir_node
*
n
)
{
ir_op
*
op
;
assert
(
n
);
...
...
@@ -1405,7 +1405,7 @@ int is_Phi (ir_node *n) {
return
0
;
}
int
is_Phi0
(
ir_node
*
n
)
{
int
is_Phi0
(
const
ir_node
*
n
)
{
assert
(
n
);
return
((
get_irn_op
(
n
)
==
op_Phi
)
&&
...
...
@@ -1846,7 +1846,7 @@ ir_node *get_Filter_cg_pred(ir_node *node, int pos) {
ir_graph
*
get_irn_irg
(
ir_node
*
node
)
{
get_irn_irg
(
const
ir_node
*
node
)
{
if
(
get_irn_op
(
node
)
!=
op_Block
)
node
=
get_nodes_block
(
node
);
if
(
is_Bad
(
node
))
/* sometimes bad is predecessor of nodes instead of block: in case of optimization */
...
...
ir/ir/irnode.h
View file @
7b40ebf3
...
...
@@ -181,7 +181,7 @@ void *get_irn_link (const ir_node *node);
/** Returns the ir_graph this node belongs to. Only valid if irg
* is in state op_pin_state_pinned (irg is only stored in the block. */
ir_graph
*
get_irn_irg
(
ir_node
*
node
);
ir_graph
*
get_irn_irg
(
const
ir_node
*
node
);
/** Outputs a unique number for this node if libFIRM is compiled for
debugging, (configure with --enable-debug) else returns address
...
...
@@ -716,10 +716,10 @@ void set_Cast_type (ir_node *node, type *to_tp);
/** Returns true if n is Phi or Filter in interprocedural_view.
Returns false if irg in phase building and the Phi has zero
predecessors: it's a Phi0. */
int
is_Phi
(
ir_node
*
n
);
int
is_Phi
(
const
ir_node
*
n
);
/** Returns true if irg in phase building and the Phi has zero
predecessors: it's a Phi0. */
int
is_Phi0
(
ir_node
*
n
);
int
is_Phi0
(
const
ir_node
*
n
);
/* These routines also work for Filter nodes in interprocedural view. */
ir_node
**
get_Phi_preds_arr
(
ir_node
*
node
);
int
get_Phi_n_preds
(
ir_node
*
node
);
...
...
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