Commit b4e4aa34 authored by Michael Beck's avatar Michael Beck
Browse files

is_Cast() added

[r15783]
parent 5df24101
......@@ -1207,6 +1207,8 @@ ir_node *skip_HighLevel(ir_node *node);
int is_Const(const ir_node *node);
/** Returns true if a node is a Conv node. */
int is_Conv(const ir_node *node);
/** Returns true if a node is a Cast node. */
int is_Cast(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 NoMem node. */
......
......@@ -2703,6 +2703,11 @@ int
return _is_Conv(node);
}
int
(is_Cast)(const ir_node *node) {
return _is_Cast(node);
}
int
(is_no_Block)(const ir_node *node) {
return _is_no_Block(node);
......
......@@ -532,6 +532,12 @@ _is_Conv(const ir_node *node) {
return (_get_irn_op(node) == op_Conv);
}
static INLINE int
_is_Cast(const ir_node *node) {
assert(node);
return (_get_irn_op(node) == op_Cast);
}
static INLINE int
_is_CopyB(const ir_node *node) {
assert(node);
......@@ -879,6 +885,7 @@ static INLINE void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
#define is_binop(node) _is_binop(node)
#define is_Const(node) _is_Const(node)
#define is_Conv(node) _is_Conv(node)
#define is_Cast(node) _is_Cast(node)
#define is_Unknown(node) _is_Unknown(node)
#define is_Return(node) _is_Return(node)
#define is_Call(node) _is_Call(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