- * @param thing an arbitrary pointer
- *
- * @return
- * true if the thing is a ir mode, else false
+ * @param thing an arbitrary pointer
+ * @return non-zero if the thing is a ir mode, else zero
-/** returns the number of predecessors without the block predecessor: */
-int get_irn_arity (const ir_node *node);
+/**
+ * Returns the number of predecessors without the block predecessor.
+ *
+ * @param node the IR-node
+ */
+int get_irn_arity (const ir_node *node);
ir_node *get_irn_n (ir_node *node, int n);
ir_node *get_irn_intra_n (ir_node *node, int n);
ir_node *get_irn_inter_n (ir_node *node, int n);
ir_node *get_irn_n (ir_node *node, int n);
ir_node *get_irn_intra_n (ir_node *node, int n);
ir_node *get_irn_inter_n (ir_node *node, int n);
ir_mode *get_irn_mode (const ir_node *node);
/** Gets the mode-enum modecode. */
modecode get_irn_modecode (const ir_node *node);
ir_mode *get_irn_mode (const ir_node *node);
/** Gets the mode-enum modecode. */
modecode get_irn_modecode (const ir_node *node);
ident *get_irn_modeident (const ir_node *node);
/** Gets the string representation of the mode .*/
const char *get_irn_modename (const ir_node *node);
ident *get_irn_modeident (const ir_node *node);
/** Gets the string representation of the mode .*/
const char *get_irn_modename (const ir_node *node);
ir_op *get_irn_op (const ir_node *node);
/** Sets the opcode struct of the node. */
void set_irn_op (ir_node *node, ir_op *op);
ir_op *get_irn_op (const ir_node *node);
/** Sets the opcode struct of the node. */
void set_irn_op (ir_node *node, ir_op *op);
const char *get_irn_opname (const ir_node *node);
/** Get the ident for a string representation of the opcode. */
ident *get_irn_opident (const ir_node *node);
const char *get_irn_opname (const ir_node *node);
/** Get the ident for a string representation of the opcode. */
ident *get_irn_opident (const ir_node *node);
void set_irn_visited (ir_node *node, unsigned long visited);
/** Sets visited to get_irg_visited(current_ir_graph). */
void mark_irn_visited (ir_node *node);
void set_irn_visited (ir_node *node, unsigned long visited);
/** Sets visited to get_irg_visited(current_ir_graph). */
void mark_irn_visited (ir_node *node);
void *get_irn_link (const ir_node *node);
/** Returns the ir_graph this node belongs to. Only valid if irg
void *get_irn_link (const ir_node *node);
/** Returns the ir_graph this node belongs to. Only valid if irg
-/* This works for all except Block. To express the difference to
- * access routines that work for all nodes we use infix "nodes". */
+/** This works for all except Block. To express the difference to
+ * access routines that work for all nodes we use infix "nodes" and do not
+ * name this function get_irn_block. */
#define get_nodes_block get_nodes_Block
ir_node *get_nodes_Block (ir_node *node);
#define set_nodes_block set_nodes_Block
void set_nodes_Block (ir_node *node, ir_node *block);
#define get_nodes_block get_nodes_Block
ir_node *get_nodes_Block (ir_node *node);
#define set_nodes_block set_nodes_Block
void set_nodes_Block (ir_node *node, ir_node *block);
void set_Cond_selector (ir_node *node, ir_node *selector);
cond_kind get_Cond_kind (ir_node *node);
void set_Cond_kind (ir_node *node, cond_kind kind);
void set_Cond_selector (ir_node *node, ir_node *selector);
cond_kind get_Cond_kind (ir_node *node);
void set_Cond_kind (ir_node *node, cond_kind kind);
/** Output information about a node */
#define DDMN(X) printf("%s(l.%i) %s%s: %ld (%p)\n", __MYFUNC__, __LINE__, get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), (void *)(X))
/** Output information about a node and its block */
/** Output information about a node */
#define DDMN(X) printf("%s(l.%i) %s%s: %ld (%p)\n", __MYFUNC__, __LINE__, get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), (void *)(X))
/** Output information about a node and its block */
-#define DDMNB(X) printf("%s%s: %ld (in block %ld)\n", get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), get_irn_node_nr(get_nodes_Block(X)))
+#define DDMNB(X) printf("%s%s: %ld (in block %ld)\n", get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), get_irn_node_nr(get_nodes_block(X)))
/** Output information about a type */
#define DDMT(X) printf("%s(l.%i) %s %s: %ld (%p)\n", __MYFUNC__, __LINE__, get_type_tpop_name(X), get_type_name(X), get_type_nr(X), (void *)(X))
/** Output information about an entity */
/** Output information about a type */
#define DDMT(X) printf("%s(l.%i) %s %s: %ld (%p)\n", __MYFUNC__, __LINE__, get_type_tpop_name(X), get_type_name(X), get_type_nr(X), (void *)(X))
/** Output information about an entity */