aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetOptions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 00:16:07 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 00:16:07 +0000
commitaa4f1e164bb9a0fe438c262f40857ca639b56fad (patch)
treee7ca7b383f3ffd24952aa02b854ff2f6e48b3bad /include/llvm/Target/TargetOptions.h
parentddd35321fb756f329f0d4fedcec7cac1acf04cb6 (diff)
downloadexternal_llvm-aa4f1e164bb9a0fe438c262f40857ca639b56fad.zip
external_llvm-aa4f1e164bb9a0fe438c262f40857ca639b56fad.tar.gz
external_llvm-aa4f1e164bb9a0fe438c262f40857ca639b56fad.tar.bz2
Add a new option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetOptions.h')
-rw-r--r--include/llvm/Target/TargetOptions.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index fcf2aa1..288da94 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -49,6 +49,22 @@ namespace llvm {
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