spill preparation needs liveness
[libfirm] / include / libfirm / tv.h
index a5ff791..311e0cf 100644 (file)
@@ -24,7 +24,7 @@
  * @date     2003
  * @author   Mathias Heil
  * @version  $Id$
- * @summary
+ * @brief
  *   Tarvals represent target machine values.  They are typed by modes.
  *   Tarvals only represent values of mode_sort:
  *    - int_number,
@@ -609,7 +609,7 @@ tarval *tarval_shrs(tarval *a, tarval *b);
  * @param a  the first tarval
  * @param b  the second tarval
  *
- * @return a <<L>> b or tarval_bad
+ * @return a \<\<L\>\> b or tarval_bad
  */
 tarval *tarval_rotl(tarval *a, tarval *b);
 
@@ -770,7 +770,7 @@ int tarval_ieee754_get_exponent(tarval *tv);
  * precision loss.
  *
  * @param tv    the tarval
- * param  mode  the mode to convert to
+ * @param mode  the mode to convert to
  */
 int tarval_ieee754_can_conv_lossless(tarval *tv, ir_mode *mode);
 
@@ -788,10 +788,19 @@ unsigned tarval_ieee754_set_immediate_precision(unsigned bits);
  */
 unsigned tarval_ieee754_get_exact(void);
 
+/**
+ * Return the size of the mantissa in bits (including possible
+ * implicit bits) for the given mode.
+ */
+unsigned tarval_ieee754_get_mantissa_size(const ir_mode *mode);
+
 /**
  * Enable/Disable floating point constant folding.
  */
-int tarval_enable_fp_ops(int enable);
+void tarval_enable_fp_ops(int enable);
+
+/** returns 0/1 if floating point folding is enable/disabled */
+int tarval_fp_ops_enabled(void);
 
 /**
  * Check if its the a floating point NaN.