projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump partitions before adding them to the worklist.
[libfirm]
/
ir
/
ir
/
irmode_t.h
diff --git
a/ir/ir/irmode_t.h
b/ir/ir/irmode_t.h
index
06cf8a8
..
f287083
100644
(file)
--- a/
ir/ir/irmode_t.h
+++ b/
ir/ir/irmode_t.h
@@
-22,7
+22,6
@@
* @brief Data modes of operations -- private header.
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Mathias Heil,
* Michael Beck
* @brief Data modes of operations -- private header.
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Mathias Heil,
* Michael Beck
- * @version $Id$
*/
#ifndef FIRM_IR_IRMODE_T_H
#define FIRM_IR_IRMODE_T_H
*/
#ifndef FIRM_IR_IRMODE_T_H
#define FIRM_IR_IRMODE_T_H
@@
-143,6
+142,16
@@
static inline ir_type *get_type_for_mode_(const ir_mode *mode)
return mode->type;
}
return mode->type;
}
+static inline unsigned get_mode_mantissa_size_(const ir_mode *mode)
+{
+ return mode->float_desc.mantissa_size;
+}
+
+static inline unsigned get_mode_exponent_size_(const ir_mode *mode)
+{
+ return mode->float_desc.exponent_size;
+}
+
/** mode module initialization, call once before use of any other function **/
void init_mode(void);
/** mode module initialization, call once before use of any other function **/
void init_mode(void);
@@
-169,5
+178,7
@@
void finish_mode(void);
#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 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)
#endif
#endif