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
aef37e8f
Commit
aef37e8f
authored
Dec 18, 2003
by
Götz Lindenmaier
Browse files
new access routine
[r2244]
parent
737b89e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
aef37e8f
...
...
@@ -2370,6 +2370,13 @@ is_Block (ir_node *node) {
return
(
get_irn_opcode
(
node
)
==
iro_Block
);
}
/* returns true if node is a Unknown node. */
INLINE
int
is_Unknown
(
ir_node
*
node
)
{
assert
(
node
);
return
(
get_irn_opcode
(
node
)
==
iro_Unknown
);
}
INLINE
int
is_Proj
(
const
ir_node
*
node
)
{
assert
(
node
);
...
...
ir/ir/irnode.h
View file @
aef37e8f
...
...
@@ -610,8 +610,8 @@ INLINE void set_Cast_op (ir_node *node, ir_node *op);
INLINE
type
*
get_Cast_type
(
ir_node
*
node
);
INLINE
void
set_Cast_type
(
ir_node
*
node
,
type
*
to_tp
);
/*
r
eturns true if n is Phi or Filter in interprocedural_view. */
INLINE
int
is_Phi
(
ir_node
*
n
);
/*
R
eturns true if n is Phi or Filter in interprocedural_view. */
INLINE
int
is_Phi
(
ir_node
*
n
);
/* These routines also work for Filter nodes in interprocedural view. */
INLINE
ir_node
**
get_Phi_preds_arr
(
ir_node
*
node
);
INLINE
int
get_Phi_n_preds
(
ir_node
*
node
);
...
...
@@ -734,6 +734,8 @@ INLINE int is_Bad (ir_node *node);
INLINE
int
is_no_Block
(
ir_node
*
node
);
/** returns true if the node is a Block */
INLINE
int
is_Block
(
ir_node
*
node
);
/** returns true if node is a Unknown node. */
INLINE
int
is_Unknown
(
ir_node
*
node
);
/** returns true if node is a Proj node or a Filter node in
* intraprocedural view */
INLINE
int
is_Proj
(
const
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