X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ftv.h;h=e4224e97286ac6f4bbf2a62f71864094b464c68c;hb=285ae217b4be997248440b80fdea5dbd146316e1;hp=f26b5d474711ecfa25bba12130150e1f8798ee59;hpb=ecdae24c2bf7aa79d8065255940faae70307d535;p=libfirm diff --git a/ir/tv/tv.h b/ir/tv/tv.h index f26b5d474..e4224e972 100644 --- a/ir/tv/tv.h +++ b/ir/tv/tv.h @@ -578,7 +578,9 @@ typedef enum _tarval_classification_t { /** * Identifying tarvals values for algebraic simplifications. - * @param tv + * + * @param tv the tarval + * * @return * - TV_CLASSIFY_NULL for additive neutral or the NULL tarval for reference modes, * - TV_CLASSIFY_ONE for multiplicative neutral, @@ -587,6 +589,12 @@ typedef enum _tarval_classification_t { */ tarval_classification_t classify_tarval(tarval *tv); +/** + * Returns non-zero if a given (integer) tarval has only one single bit + * set. + */ +int is_single_bit_tarval(tarval *tv); + /** * Output of tarvals to a buffer. */