Commit 2a773714 authored by Christian Würdig's avatar Christian Würdig
Browse files

added is_Start function

[r8291]
parent 66e75b99
......@@ -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);
......
......@@ -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 */
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment