Commit 20a054e2 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove enum tarval_classification_t.

[r15839]
parent 506c6cca
......@@ -561,16 +561,6 @@ char *get_tarval_bitpattern(tarval *tv);
*/
unsigned char get_tarval_sub_bits(tarval *tv, unsigned byte_ofs);
/**
* Return values of tarval classify
*/
typedef enum _tarval_classification_t {
TV_CLASSIFY_NULL = 0, /**< the tarval represents the additive neutral element */
TV_CLASSIFY_ONE = +1, /**< the tarval represents the multiplicative neutral element */
TV_CLASSIFY_ALL_ONE = -1, /**< the tarval represents the bitwise-and neutral element */
TV_CLASSIFY_OTHER = 2 /**< all other tarvals */
} tarval_classification_t;
/**
* Returns non-zero if a given (integer) tarval has only one single bit
* set.
......
......@@ -774,10 +774,10 @@ static INLINE cnst_classify_t _classify_Const(ir_node *node) {
if (op == op_Const) {
tarval *tv = _get_Const_tarval(node);
if (tarval_is_null(tv)) return TV_CLASSIFY_NULL;
if (tarval_is_one(tv)) return TV_CLASSIFY_ONE;
if (tarval_is_all_one(tv)) return TV_CLASSIFY_ALL_ONE;
return TV_CLASSIFY_OTHER;
if (tarval_is_null(tv)) return CNST_NULL;
if (tarval_is_one(tv)) return CNST_ONE;
if (tarval_is_all_one(tv)) return CNST_ALL_ONE;
return CNST_OTHER;
} else if(op == op_SymConst)
return CNST_SYMCONST;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment