X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_confirms.h;h=23baa76b777e2ecc42f893b693fd46188629453d;hb=3ee397d14a0564b2d7e2e141bc1d3aca5c011f0f;hp=4d134d81824ae893ae9a68ed40a2b01c4b24a6ec;hpb=05e879d227e8ec8712a4ffc1c3d8bf82ca583f09;p=libfirm diff --git a/ir/opt/opt_confirms.h b/ir/opt/opt_confirms.h index 4d134d818..23baa76b7 100644 --- a/ir/opt/opt_confirms.h +++ b/ir/opt/opt_confirms.h @@ -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