expose HonorSignDependentRoundingFPMathOption to .td files
authorChris Lattner <sabre@nondot.org>
Thu, 3 May 2007 00:27:11 +0000 (00:27 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 May 2007 00:27:11 +0000 (00:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Target.td
lib/Target/TargetMachine.cpp

index fce45a5c2d4e2fe803fabea8b1649a38377a8edc..938e4cdc8fbf72092257d0921f195a0337bdad29 100644 (file)
@@ -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;
 }
index b79b87b47943acc4512f49b025c184bee64dce58..6c00a3f492b9b83c70164032c795856cc3555d5a 100644 (file)
@@ -27,6 +27,7 @@ namespace llvm {
   bool NoExcessFPPrecision;
   bool UnsafeFPMath;
   bool FiniteOnlyFPMathOption;
+  bool HonorSignDependentRoundingFPMathOption;
   bool UseSoftFloat;
   bool NoZerosInBSS;
   bool ExceptionHandling;