[llvm-commits] CVS: llvm/include/llvm/Target/TargetOptions.h

Chris Lattner sabre at nondot.org
Wed May 2 17:16:27 PDT 2007



Changes in directory llvm/include/llvm/Target:

TargetOptions.h updated: 1.14 -> 1.15
---
Log message:

Add a new option.


---
Diffs of the changes:  (+16 -0)

 TargetOptions.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)


Index: llvm/include/llvm/Target/TargetOptions.h
diff -u llvm/include/llvm/Target/TargetOptions.h:1.14 llvm/include/llvm/Target/TargetOptions.h:1.15
--- llvm/include/llvm/Target/TargetOptions.h:1.14	Mon Jan 29 14:48:32 2007
+++ llvm/include/llvm/Target/TargetOptions.h	Wed May  2 19:16:07 2007
@@ -49,6 +49,22 @@
   extern bool FiniteOnlyFPMathOption;
   extern bool FiniteOnlyFPMath();
   
+  /// HonorSignDependentRoundingFPMath - This returns true when the
+  /// -enable-sign-dependent-rounding-fp-math is specified.  If this returns
+  /// false (the default), the code generator is allowed to assume that the
+  /// rounding behavior is the default (round-to-zero for all floating point to
+  /// integer conversions, and round-to-nearest for all other arithmetic
+  /// truncations).  If this is enabled (set to true), the code generator must
+  /// assume that the rounding mode may dynamically change.
+  extern bool HonorSignDependentRoundingFPMathOption;
+  extern bool HonorSignDependentRoundingFPMath();
+  
+  /// option is specified on the command line. If this returns false (default),
+  /// the code generator is not allowed to assume that FP arithmetic arguments
+  /// and results are never NaNs or +-Infs.
+  extern bool FiniteOnlyFPMathOption;
+  extern bool FiniteOnlyFPMath();
+  
   /// UseSoftFloat - This flag is enabled when the -soft-float flag is specified
   /// on the command line.  When this flag is on, the code generator will
   /// generate libcalls to the software floating point library instead of






More information about the llvm-commits mailing list