/** EndReg/EndExcept attributes */
typedef struct {
char dummy;
- /* ir_graph * irg; */ /**< ir_graph this node belongs to (for */
- /* * navigating in interprocedural graphs) */
- /* @@@ now in block */
} end_attr;
/** CallBegin attributes */
typedef struct {
- /* ir_graph * irg; */ /**< ir_graph this node belongs to (for */
- /* * navigating in interprocedural graphs) */
- /* @@@ now in block */
ir_node * call; /**< associated Call-operation */
} callbegin_attr;
node takes the role of the obsolete Phi0 node,
therefore the name. */
int *phi_backedge; /**< For Phi after construction.
- Field n set to true if pred n is backedge.
- @todo Ev. replace by bitfield! */
+ Field n set to true if pred n is backedge.
+ @todo Ev. replace by bitfield! */
long proj; /**< For Proj: contains the result position to project */
confirm_attr confirm_cmp; /**< For Confirm: compare operation */
filter_attr filter; /**< For Filter */
/** @{ */
/** access attributes directly */
-INLINE const_attr get_irn_const_attr (ir_node *node);
-INLINE long get_irn_proj_attr (ir_node *node);
-INLINE alloc_attr get_irn_alloc_attr (ir_node *node);
-INLINE type *get_irn_free_attr (ir_node *node);
-INLINE symconst_attr get_irn_symconst_attr (ir_node *node);
-type *get_irn_call_attr (ir_node *node);
-type *get_irn_funccall_attr (ir_node *node);
-sel_attr get_irn_sel_attr (ir_node *node);
-int get_irn_phi_attr (ir_node *node);
-block_attr get_irn_block_attr (ir_node *node);
-load_attr get_irn_load_attr (ir_node *node);
-store_attr get_irn_store_attr (ir_node *node);
-except_attr get_irn_except_attr (ir_node *node);
+const_attr get_irn_const_attr (ir_node *node);
+long get_irn_proj_attr (ir_node *node);
+alloc_attr get_irn_alloc_attr (ir_node *node);
+type *get_irn_free_attr (ir_node *node);
+symconst_attr get_irn_symconst_attr (ir_node *node);
+type *get_irn_call_attr (ir_node *node);
+type *get_irn_funccall_attr (ir_node *node);
+sel_attr get_irn_sel_attr (ir_node *node);
+int get_irn_phi_attr (ir_node *node);
+block_attr get_irn_block_attr (ir_node *node);
+load_attr get_irn_load_attr (ir_node *node);
+store_attr get_irn_store_attr (ir_node *node);
+except_attr get_irn_except_attr (ir_node *node);
/** @} */
/*
*/
static INLINE void *
__get_irn_link(const ir_node *node) {
- assert (node);
+ assert (node && is_ir_node(node));
return node->link;
}
*/
static INLINE op_pin_state
__get_irn_pinned(const ir_node *node) {
+ assert(node && is_ir_node(node));
op_pin_state state = __get_op_pinned(__get_irn_op(node));
if (state >= op_pin_state_exc_pinned)
return get_opt_fragile_ops() ? node->attr.except.pin_state : op_pin_state_pinned;
static INLINE int
__is_unop(const ir_node *node) {
+ assert(node && is_ir_node(node));
return (node->op->opar == oparity_unary);
}
static INLINE int
__is_binop(const ir_node *node) {
+ assert(node && is_ir_node(node));
return (node->op->opar == oparity_binary);
}
static INLINE int
__is_no_Block(const ir_node *node) {
- assert(node);
+ assert(node && is_ir_node(node));
return (__get_irn_op(node) != op_Block);
}
static INLINE int
__is_Block(const ir_node *node) {
- assert(node);
+ assert(node && is_ir_node(node));
return (__get_irn_op(node) == op_Block);
}