Commit 110872ba authored by Matthias Braun's avatar Matthias Braun
Browse files

Remove unused mode_is_dataM().

parent 62775cde
......@@ -312,8 +312,6 @@ FIRM_API int mode_is_num (const ir_mode *mode);
FIRM_API int mode_is_data (const ir_mode *mode);
/** Returns 1 if @p mode is for data values or internal booleans, 0 otherwise */
FIRM_API int mode_is_datab (const ir_mode *mode);
/** Returns 1 if @p mode is for data values or memory, 0 otherwise */
FIRM_API int mode_is_dataM (const ir_mode *mode);
/**
* Returns true if a value of mode @p sm can be converted to mode @p lm without
......
......@@ -399,11 +399,6 @@ int (mode_is_datab)(const ir_mode *mode)
return mode_is_datab_(mode);
}
int (mode_is_dataM)(const ir_mode *mode)
{
return mode_is_dataM_(mode);
}
unsigned (get_mode_mantissa_size)(const ir_mode *mode)
{
return get_mode_mantissa_size_(mode);
......
......@@ -33,7 +33,6 @@
#define mode_is_num(mode) mode_is_num_(mode)
#define mode_is_data(mode) mode_is_data_(mode)
#define mode_is_datab(mode) mode_is_datab_(mode)
#define mode_is_dataM(mode) mode_is_dataM_(mode)
#define get_type_for_mode(mode) get_type_for_mode_(mode)
#define get_mode_mantissa_size(mode) get_mode_mantissa_size_(mode)
#define get_mode_exponent_size(mode) get_mode_exponent_size_(mode)
......@@ -66,7 +65,7 @@ static inline void *get_mode_link_(const ir_mode *mode) { return mode->link; }
static inline void set_mode_link_(ir_mode *mode, void *l) { mode->link = l; }
/* Functions to check, whether a mode is signed, float, int, num, data,
datab or dataM. For more exact definitions read the corresponding pages
datab. For more exact definitions read the corresponding pages
in the firm documentation or the following enumeration
The set of "float" is defined as:
......@@ -94,12 +93,6 @@ static inline void set_mode_link_(ir_mode *mode, void *l) { mode->link = l; }
datab = {irm_F, irm_D, irm_E, irm_Bs, irm_Bu, irm_Hs, irm_Hu,
irm_Is, irm_Iu, irm_Ls, irm_Lu, irm_C, irm_U, irm_P, irm_b}
= {data || irm_b }
The set of "dataM" is defined as:
---------------------------------
dataM = {irm_F, irm_D, irm_E, irm_Bs, irm_Bu, irm_Hs, irm_Hu,
irm_Is, irm_Iu, irm_Ls, irm_Lu, irm_C, irm_U, irm_P, irm_M}
= {data || irm_M}
*/
static inline int mode_is_signed_(const ir_mode *mode)
......@@ -137,11 +130,6 @@ static inline int mode_is_datab_(const ir_mode *mode)
return (get_mode_sort(mode) & irmsh_is_datab);
}
static inline int mode_is_dataM_(const ir_mode *mode)
{
return (get_mode_sort(mode) & irmsh_is_dataM);
}
static inline ir_type *get_type_for_mode_(const ir_mode *mode)
{
return mode->type;
......
......@@ -90,7 +90,6 @@ enum ir_mode_sort_helper {
irmsh_is_num = 0x10, /**< mode represents a number */
irmsh_is_data = 0x20, /**< mode represents data (can be carried in registers) */
irmsh_is_datab = 0x40, /**< mode represents data or is internal boolean */
irmsh_is_dataM = 0x80, /**< mode represents data or is memory */
};
/**
......@@ -104,7 +103,7 @@ typedef enum ir_mode_sort {
irms_tuple = 2,
irms_any = 3,
irms_bad = 4,
irms_memory = 5 | irmsh_is_dataM, /**< Marks the memory mode. Not extensible. (irm_M) */
irms_memory = 5,
/** Internal boolean representation.
Storing to memory impossible, convert first. (irm_b) */
......@@ -112,13 +111,13 @@ typedef enum ir_mode_sort {
/** A mode to represent entities.
Restricted int computations can be performed */
irms_reference = 7 | irmsh_is_data | irmsh_is_datab | irmsh_is_dataM,
irms_reference = 7 | irmsh_is_data | irmsh_is_datab,
/** A mode to represent int numbers.
Integer computations can be performed. */
irms_int_number = 8 | irmsh_is_data | irmsh_is_datab | irmsh_is_dataM | irmsh_is_num,
irms_int_number = 8 | irmsh_is_data | irmsh_is_datab | irmsh_is_num,
/** A mode to represent float numbers.
Floating point computations can be performed. */
irms_float_number = 9 | irmsh_is_data | irmsh_is_datab | irmsh_is_dataM | irmsh_is_num,
irms_float_number = 9 | irmsh_is_data | irmsh_is_datab | irmsh_is_num,
} ir_mode_sort;
/**
......
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