optimize_graph_df():
[libfirm] / ir / opt / opt_confirms.h
index e9abd7b..23baa76 100644 (file)
@@ -32,7 +32,6 @@ typedef enum _value_classify {
                              no signed zero exists or < 0 else */
 } value_classify;
 
-
 /**
  * Check, if the value of a node is != 0.
  *
@@ -43,6 +42,18 @@ typedef enum _value_classify {
  */
 int value_not_zero(ir_node *n);
 
+/**
+ * Check, if the value of a node cannot represent a NULL pointer.
+ *
+ * - If sel_based_null_check_elim is enabled, all
+ *   Sel nodes can be skipped.
+ * - A SymConst(entity) is NEVER a NULL pointer
+ * - Confirms are evaluated
+ *
+ * @param n  a node representing the value
+ */
+int value_not_null(ir_node *n);
+
 /**
  * Check, if the value of a node can be confirmed >= 0 or <= 0,
  * If the mode of the value did not honor signed zeros, else
@@ -56,9 +67,11 @@ value_classify classify_value_sign(ir_node *n);
  * Return the value of a Cmp if one or both predecessors
  * are Confirm nodes.
  *
+ * @param cmp    the compare node that will be evaluated
  * @param left   the left operand of the Cmp
  * @param right  the right operand of the Cmp
+ * @param pnc    the compare relation
  */
-tarval *computed_value_Cmp_Confirm(ir_node *left, ir_node *right, pn_Cmp pnc);
+tarval *computed_value_Cmp_Confirm(ir_node *cmp, ir_node *left, ir_node *right, pn_Cmp pnc);
 
 #endif /* _OPT_CONFIRMS_H_ */