projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
423b55e
)
added data for floating point constant statistics
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 17 Jun 2005 17:36:09 +0000
(17:36 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 17 Jun 2005 17:36:09 +0000
(17:36 +0000)
[r6066]
ir/stat/firmstat_t.h
patch
|
blob
|
history
diff --git
a/ir/stat/firmstat_t.h
b/ir/stat/firmstat_t.h
index
9c8b402
..
ab4bd39
100644
(file)
--- a/
ir/stat/firmstat_t.h
+++ b/
ir/stat/firmstat_t.h
@@
-125,12
+125,26
@@
typedef struct _block_entry_t {
long block_nr; /**< block nr */
} block_entry_t;
long block_nr; /**< block nr */
} block_entry_t;
+/**
+ * Some potential interesting float values
+ */
+typedef enum _float_classify_t {
+ STAT_FC_0, /**< the float value 0.0 */
+ STAT_FC_1, /**< the float value 1.0 */
+ STAT_FC_2, /**< the float value 2.0 */
+ STAT_FC_0_5, /**< the float value 0.5 */
+ STAT_FC_EXACT, /**< an exact value */
+ STAT_FC_OTHER, /**< all other values */
+ STAT_FC_MAX /**< last value */
+} float_classify_t;
+
/**
* constant info
*/
typedef struct _constant_info_t {
/**
* constant info
*/
typedef struct _constant_info_t {
- counter_t bits_count[32]; /**< distribution of bit sizes of constants */
- counter_t others; /**< number of other constants */
+ counter_t int_bits_count[32]; /**< distribution of bit sizes of integer constants */
+ counter_t floats[STAT_FC_MAX]; /**< floating point constants */
+ counter_t others; /**< all other constants */
} constant_info_t;
/** forward */
} constant_info_t;
/** forward */
@@
-291,4
+305,9
@@
void stat_const_clear(stat_info_t *status);
*/
void stat_init_const_cnt(stat_info_t *status);
*/
void stat_init_const_cnt(stat_info_t *status);
+/**
+ * return a human readable name for an float classification
+ */
+const char *stat_fc_name(float_classify_t classification);
+
#endif /* _FIRMSTAT_T_H_ */
#endif /* _FIRMSTAT_T_H_ */