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
2a773714
Commit
2a773714
authored
Sep 21, 2006
by
Christian Würdig
Browse files
added is_Start function
[r8291]
parent
66e75b99
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
2a773714
...
...
@@ -2506,6 +2506,11 @@ int
return
_is_Bad
(
node
);
}
int
(
is_Start
)(
const
ir_node
*
node
)
{
return
_is_Start
(
node
);
}
int
(
is_Const
)(
const
ir_node
*
node
)
{
return
_is_Const
(
node
);
...
...
ir/ir/irnode.h
View file @
2a773714
...
...
@@ -1126,6 +1126,8 @@ ir_node *skip_HighLevel(ir_node *node);
int
is_Const
(
const
ir_node
*
node
);
/** returns true if node is a Bad node. */
int
is_Bad
(
const
ir_node
*
node
);
/** returns true if node is a Start node. */
int
is_Start
(
const
ir_node
*
node
);
/** returns true if the node is not a Block */
int
is_no_Block
(
const
ir_node
*
node
);
/** returns true if the node is a Block */
...
...
ir/ir/irnode_t.h
View file @
2a773714
...
...
@@ -632,6 +632,12 @@ _is_Bad(const ir_node *node) {
return
(
_get_irn_op
(
node
)
==
op_Bad
);
}
static
INLINE
int
_is_Start
(
const
ir_node
*
node
)
{
assert
(
node
);
return
(
_get_irn_op
(
node
)
==
op_Start
);
}
static
INLINE
int
_is_Const
(
const
ir_node
*
node
)
{
assert
(
node
);
...
...
@@ -931,6 +937,7 @@ static INLINE unsigned _get_irn_idx(const ir_node *node) {
#define is_Cmp(node) _is_Cmp(node)
#define is_Alloc(node) _is_Alloc(node)
#define is_Bad(node) _is_Bad(node)
#define is_Start(node) _is_Start(node)
#define is_no_Block(node) _is_no_Block(node)
#define is_Block(node) _is_Block(node)
#define get_Block_n_cfgpreds(node) _get_Block_n_cfgpreds(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