Cleaned up the tarval handling:
[libfirm] / include / libfirm / irnode.h
index 157f473..806f56e 100644 (file)
@@ -32,7 +32,6 @@
 #include "typerep.h"
 #include "irop.h"
 #include "irmode.h"
-#include "dbginfo.h"
 
 /**
  * @file irnode.h
@@ -817,6 +816,9 @@ int         get_negated_pnc(int pnc, ir_mode *mode);
 /** 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);
@@ -1202,8 +1204,14 @@ int      is_Add(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 */
@@ -1364,7 +1372,7 @@ void set_Cond_jmp_pred(ir_node *cond, cond_jmp_predicate pred);
  * 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.
@@ -1379,6 +1387,21 @@ const void *get_irn_generic_attr_const(const ir_node *node);
  */
 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                                                   **/
 /*-----------------------------------------------------------------*/