aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-23 18:18:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-23 18:18:46 +0000
commit80235d508e5f7a9603ef43ba6625984173ff0323 (patch)
tree66ce594da4fbebdc0f37975d9f8aa819d6f03cc6 /include/llvm/Target
parent1fd8a4f65da140e5f340ccb79a33ed86fd82d169 (diff)
downloadexternal_llvm-80235d508e5f7a9603ef43ba6625984173ff0323.zip
external_llvm-80235d508e5f7a9603ef43ba6625984173ff0323.tar.gz
external_llvm-80235d508e5f7a9603ef43ba6625984173ff0323.tar.bz2
-enable-unsafe-fp-math implies -enable-finite-only-fp-math
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetOptions.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index 2131eca..ea391b7 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -39,14 +39,15 @@ namespace llvm {
/// this flag is off (the default), the code generator is not allowed to
/// produce results that are "less precise" than IEEE allows. This includes
/// use of X86 instructions like FSIN and FCOS instead of libcalls.
+ /// UnsafeFPMath implies FiniteOnlyFPMath.
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),
+ /// FiniteOnlyFPMath - This returns true when the -enable-finite-only-fp-math
+ /// 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. This includes ignoring parity flag
- /// (PF) when checking for FP equality.
- extern bool FiniteOnlyFPMath;
+ /// and results are never NaNs or +-Infs.
+ extern bool FiniteOnlyFPMathOption;
+ extern bool FiniteOnlyFPMath();
} // End llvm namespace
#endif