diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-03 00:27:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-03 00:27:11 +0000 |
commit | a7ad3d1ed3a4c257be225ffdc580e007b45c11d4 (patch) | |
tree | bfd74a7c792d422710701e430500d5737878de48 | |
parent | aa4f1e164bb9a0fe438c262f40857ca639b56fad (diff) |
expose HonorSignDependentRoundingFPMathOption to .td files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36658 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Target.td | 5 | ||||
-rw-r--r-- | lib/Target/TargetMachine.cpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Target.td b/lib/Target/Target.td index fce45a5c2d..938e4cdc8f 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -210,6 +210,11 @@ class Predicate<string cond> { string CondString = cond; } +/// NoHonorSignDependentRounding - This predicate is true if support for +/// sign-dependent-rounding is not enabled. +def NoHonorSignDependentRounding + : Predicate<"!HonorSignDependentRoundingFPMath()">; + class Requires<list<Predicate> preds> { list<Predicate> Predicates = preds; } diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index b79b87b479..6c00a3f492 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -27,6 +27,7 @@ namespace llvm { bool NoExcessFPPrecision; bool UnsafeFPMath; bool FiniteOnlyFPMathOption; + bool HonorSignDependentRoundingFPMathOption; bool UseSoftFloat; bool NoZerosInBSS; bool ExceptionHandling; |