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 | f65f18b2f95bbd3c0b0546d31411cfcc4c64d767 (patch) | |
tree | 6fcadeb7cb09de574dd9f71656d531b4a11deb79 /llvm/lib | |
parent | 6ac3a37fb6b9189e2e6d464c241757c18d6ac161 (diff) | |
download | bcm5719-llvm-f65f18b2f95bbd3c0b0546d31411cfcc4c64d767.tar.gz bcm5719-llvm-f65f18b2f95bbd3c0b0546d31411cfcc4c64d767.zip |
expose HonorSignDependentRoundingFPMathOption to .td files
llvm-svn: 36658
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Target.td | 5 | ||||
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 1 |
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; |