Commit 4c231c4a authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused get_reference_mode_signed_eq()

parent b2bc7cd8
......@@ -389,16 +389,6 @@ FIRM_API int mode_overflow_on_unary_Minus(const ir_mode *mode);
*/
FIRM_API int mode_wrap_around(const ir_mode *mode);
/**
* Returns the signed integer equivalent mode for an reference mode.
*/
FIRM_API ir_mode *get_reference_mode_signed_eq(const ir_mode *mode);
/**
* Sets the signed integer equivalent mode for an reference mode.
*/
FIRM_API void set_reference_mode_signed_eq(ir_mode *ref_mode, ir_mode *int_mode);
/**
* Returns the unsigned integer equivalent mode for an reference mode.
*/
......
......@@ -970,7 +970,6 @@ static void write_mode(write_env_t *env, ir_mode *mode)
write_unsigned(env, get_mode_size_bits(mode));
write_unsigned(env, get_mode_modulo_shift(mode));
write_mode_ref(env, get_reference_mode_signed_eq(mode));
write_mode_ref(env, get_reference_mode_unsigned_eq(mode));
write_int(env, (mode == mode_P ? 1 : 0));
} else if (mode_is_float(mode)) {
......@@ -2170,7 +2169,6 @@ static void read_modes(read_env_t *env)
int size = read_long(env);
unsigned modulo_shift = read_long(env);
ir_mode *mode = new_reference_mode(name, arith, size, modulo_shift);
set_reference_mode_signed_eq(mode, read_mode_ref(env));
set_reference_mode_unsigned_eq(mode, read_mode_ref(env));
int is_mode_P = read_int(env);
if (is_mode_P) {
......
......@@ -501,19 +501,6 @@ int values_in_mode(const ir_mode *sm, const ir_mode *lm)
return false;
}
ir_mode *get_reference_mode_signed_eq(const ir_mode *mode)
{
assert(mode_is_reference(mode));
return mode->eq_signed;
}
void set_reference_mode_signed_eq(ir_mode *ref_mode, ir_mode *int_mode)
{
assert(mode_is_reference(ref_mode));
assert(mode_is_int(int_mode));
ref_mode->eq_signed = int_mode;
}
ir_mode *get_reference_mode_unsigned_eq(const ir_mode *mode)
{
assert(mode_is_reference(mode));
......@@ -555,7 +542,6 @@ void init_mode(void)
mode_Lu = new_int_mode("Lu", irma_twos_complement, 64, 0, 64);
mode_P = new_reference_mode("P", irma_twos_complement, 32, 32);
set_reference_mode_signed_eq(mode_P, mode_Is);
set_reference_mode_unsigned_eq(mode_P, mode_Iu);
/* set the machine specific modes to the predefined ones */
......
......@@ -165,7 +165,6 @@ struct ir_mode {
ir_tarval *all_one; /**< the value ~0 */
ir_tarval *infinity; /**< the infinity value */
ir_tarval *nan; /** the not a number (NaN) value */
ir_mode *eq_signed; /**< For pointer modes, the equivalent signed integer one. */
ir_mode *eq_unsigned; /**< For pointer modes, the equivalent unsigned integer one. */
};
......
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