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

Evan Cheng evan.cheng at apple.com
Mon May 22 23:39:25 PDT 2006



Changes in directory llvm/include/llvm/Target:

TargetOptions.h updated: 1.8 -> 1.9
---
Log message:

Added option -enable-finite-only-fp-math. When on, the codegen can assume that
FP arithmetic arguments and results are never NaNs or +=Infs. This includes
ignoring parity flag (PF) when checking for FP equality.


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

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


Index: llvm/include/llvm/Target/TargetOptions.h
diff -u llvm/include/llvm/Target/TargetOptions.h:1.8 llvm/include/llvm/Target/TargetOptions.h:1.9
--- llvm/include/llvm/Target/TargetOptions.h:1.8	Wed Feb 22 14:19:42 2006
+++ llvm/include/llvm/Target/TargetOptions.h	Tue May 23 01:39:12 2006
@@ -40,6 +40,13 @@
   /// produce results that are "less precise" than IEEE allows.  This includes
   /// use of X86 instructions like FSIN and FCOS instead of libcalls.
   extern bool UnsafeFPMath;
+
+  /// FiniteOnlyFPMath - This is enabled when the -enable-finite-only-fp-math
+  /// flag is specified on the command line. When this flag is off (default),
+  /// the code generator is not allowed to assume that FP arithmetic arguments
+  /// and results are never NaNs or +-Infs. This includes ignoring parity flag
+  /// (PF) when checking for FP equality.
+  extern bool FiniteOnlyFPMath;
 } // End llvm namespace
 
 #endif






More information about the llvm-commits mailing list