summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 00:27:11 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 00:27:11 +0000
commitf65f18b2f95bbd3c0b0546d31411cfcc4c64d767 (patch)
tree6fcadeb7cb09de574dd9f71656d531b4a11deb79
parent6ac3a37fb6b9189e2e6d464c241757c18d6ac161 (diff)
downloadbcm5719-llvm-f65f18b2f95bbd3c0b0546d31411cfcc4c64d767.tar.gz
bcm5719-llvm-f65f18b2f95bbd3c0b0546d31411cfcc4c64d767.zip
expose HonorSignDependentRoundingFPMathOption to .td files
llvm-svn: 36658
-rw-r--r--llvm/lib/Target/Target.td5
-rw-r--r--llvm/lib/Target/TargetMachine.cpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td
index fce45a5c2d4..938e4cdc8fb 100644
--- a/llvm/lib/Target/Target.td
+++ b/llvm/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/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index b79b87b4794..6c00a3f492b 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -27,6 +27,7 @@ namespace llvm {
bool NoExcessFPPrecision;
bool UnsafeFPMath;
bool FiniteOnlyFPMathOption;
+ bool HonorSignDependentRoundingFPMathOption;
bool UseSoftFloat;
bool NoZerosInBSS;
bool ExceptionHandling;
OpenPOWER on IntegriCloud