summaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetOptions.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-23 06:39:12 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-23 06:39:12 +0000
commit95942d76f4fdd1191febf1aa2b612fce6351ab3b (patch)
tree7276d8cbd20058d1b7225a4da19c59afb211bcbc /include/llvm/Target/TargetOptions.h
parent4b442b528a50ef06cd75f0e7c41ad57426175bcc (diff)
downloadexternal_llvm-95942d76f4fdd1191febf1aa2b612fce6351ab3b.zip
external_llvm-95942d76f4fdd1191febf1aa2b612fce6351ab3b.tar.gz
external_llvm-95942d76f4fdd1191febf1aa2b612fce6351ab3b.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetOptions.h')
-rw-r--r--include/llvm/Target/TargetOptions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index e208eba..2131eca 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -40,6 +40,13 @@ namespace llvm {
/// 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