Commit f2dbe100 authored by Matthias Braun's avatar Matthias Braun
Browse files

add missing get_type_for_mode functions

[r27604]
parent 0e92ace4
......@@ -960,6 +960,11 @@ int is_reinterpret_cast(const ir_mode *src, const ir_mode *dst)
return ma == irma_twos_complement || ma == irma_ones_complement;
}
ir_type *(get_type_for_mode) (const ir_mode *mode)
{
return get_type_for_mode_(mode);
}
void finish_mode(void)
{
obstack_free(&modes, 0);
......
......@@ -150,6 +150,11 @@ static inline int _mode_is_int_vector(const ir_mode *mode)
return (_get_mode_sort(mode) == irms_int_number) && (_get_mode_vector_elems(mode) > 1);
}
static inline ir_type *get_type_for_mode_(const ir_mode *mode)
{
return mode->type;
}
/** mode module initialization, call once before use of any other function **/
void init_mode(void);
......@@ -178,5 +183,6 @@ void finish_mode(void);
#define mode_is_dataM(mode) _mode_is_dataM(mode)
#define mode_is_float_vector(mode) _mode_is_float_vector(mode)
#define mode_is_int_vector(mode) _mode_is_int_vector(mode)
#define get_type_for_mode(mode) get_type_for_mode_(mode)
#endif
Supports Markdown
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