Remove enum tarval_classification_t.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Sep 2007 15:11:26 +0000 (15:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Sep 2007 15:11:26 +0000 (15:11 +0000)
[r15839]

include/libfirm/tv.h
ir/ir/irnode_t.h

index 9fc6513..b031a8e 100644 (file)
@@ -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.
index 13bd5d1..d4df608 100644 (file)
@@ -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;