#include "typerep.h"
#include "irop.h"
#include "irmode.h"
-#include "dbginfo.h"
/**
* @file irnode.h
/** Calculates the inversed (R^-1) pnc condition, i.e., "<" --> ">" */
int get_inversed_pnc(int pnc);
+/** An alternative name for get_inversed_pnc() that can be better memorized. */
+#define get_mirrored_pnc(pnc) get_inversed_pnc(pnc)
+
ir_node *get_Cmp_left(const ir_node *node);
void set_Cmp_left(ir_node *node, ir_node *left);
ir_node *get_Cmp_right(const ir_node *node);
int is_And(const ir_node *node);
/** Returns true if node is an Or node. */
int is_Or(const ir_node *node);
+/** Returns true if node is an Eor node. */
+int is_Eor(const ir_node *node);
/** Returns true if node is a Sub node. */
int is_Sub(const ir_node *node);
+/** Returns true if node is a Not node. */
+int is_Not(const ir_node *node);
+/** Returns true if node is a Psi node. */
+int is_Psi(const ir_node *node);
/** Returns true if node is a Tuple node. */
int is_Tuple(const ir_node *node);
/** Returns true if the node is not a Block */
* must be passed to the access macro get_irn_data(), 0 if the
* registration failed.
*/
-unsigned register_additional_node_data(unsigned size);
+unsigned firm_register_additional_node_data(unsigned size);
/**
* Return a pointer to the node attributes.
*/
unsigned get_irn_idx(const ir_node *node);
+/**
+ * Sets the debug information of a node.
+ *
+ * @param n The node.
+ * @param db The debug info.
+ */
+void set_irn_dbg_info(ir_node *n, dbg_info *db);
+
+/**
+ * Returns the debug information of an node.
+ *
+ * @param n The node.
+ */
+dbg_info *get_irn_dbg_info(const ir_node *n);
+
/*-----------------------------------------------------------------*/
/** Debug aides **/
/*-----------------------------------------------------------------*/