From aef37e8f6923edb63c4293f3df0402007cdc530b Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Thu, 18 Dec 2003 16:40:26 +0000 Subject: [PATCH] new access routine [r2244] --- ir/ir/irnode.c | 7 +++++++ ir/ir/irnode.h | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 9416d2364..94cbf54f2 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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); diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index f2ac27a83..b8bc87e03 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -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); -/* returns true if n is Phi or Filter in interprocedural_view. */ -INLINE int is_Phi (ir_node *n); +/* Returns 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); -- 2.20.1