irmode: remove support for exotic arithmetics
authorMatthias Braun <matze@braunis.de>
Thu, 20 Oct 2011 16:01:28 +0000 (18:01 +0200)
committerMatthias Braun <matze@braunis.de>
Thu, 20 Oct 2011 17:32:25 +0000 (19:32 +0200)
include/libfirm/irmode.h
ir/ir/irio.c
ir/ir/irmode.c

index 4fcd309..b4379df 100644 (file)
@@ -83,19 +83,9 @@ typedef enum ir_mode_arithmetic {
        irma_twos_complement = 2, /**< Values of the mode are represented as two's
                                       complement. Only legal for modes of sort
                                       int_number and reference. */
-       irma_ones_complement,     /**< Values of the mode are represented  as one's
-                                      complement. Only legal for modes of sort
-                                      int_number and reference. */
-       irma_int_BCD,             /**< Values of the mode are represented as binary
-                                      coded decimals. Only legal for modes of sort
-                                      int_number and reference. */
        irma_ieee754 = 256,       /**< Values of the mode are represented according
                                       to ieee754 floating point standard.  Only
                                       legal for modes of sort float_number. */
-       irma_float_BCD,           /**< Values of the mode are represented as binary
-                                      coded decimals according to @@@ which
-                                      standards??? Only legal for modes of sort
-                                      float_number. */
        irma_max
 } ir_mode_arithmetic;
 
index 311e3bd..5ee28f8 100644 (file)
@@ -247,10 +247,7 @@ static void symtbl_init(void)
        INSERTENUM(tt_mode_arithmetic, irma_uninitialized);
        INSERTENUM(tt_mode_arithmetic, irma_none);
        INSERTENUM(tt_mode_arithmetic, irma_twos_complement);
-       INSERTENUM(tt_mode_arithmetic, irma_ones_complement);
-       INSERTENUM(tt_mode_arithmetic, irma_int_BCD);
        INSERTENUM(tt_mode_arithmetic, irma_ieee754);
-       INSERTENUM(tt_mode_arithmetic, irma_float_BCD);
 
        INSERTENUM(tt_pin_state, op_pin_state_floats);
        INSERTENUM(tt_pin_state, op_pin_state_pinned);
index 03b7f5a..4d0da3d 100644 (file)
@@ -54,10 +54,7 @@ const char *get_mode_arithmetic_name(ir_mode_arithmetic ari)
                X(irma_uninitialized);
                X(irma_none);
                X(irma_twos_complement);
-               X(irma_ones_complement);
-               X(irma_int_BCD);
                X(irma_ieee754);
-               X(irma_float_BCD);
                default: return "<unknown>";
        }
 #undef X
@@ -931,7 +928,7 @@ int is_reinterpret_cast(const ir_mode *src, const ir_mode *dst)
        if (ma != get_mode_arithmetic(dst))
                return 0;
 
-       return ma == irma_twos_complement || ma == irma_ones_complement;
+       return ma == irma_twos_complement;
 }
 
 ir_type *(get_type_for_mode) (const ir_mode *mode)