[llvm] r225308 - Add isInfinity helper to ConstantFPSDNode

Matt Arsenault Matthew.Arsenault at amd.com
Tue Jan 6 15:00:43 PST 2015


Author: arsenm
Date: Tue Jan  6 17:00:43 2015
New Revision: 225308

URL: http://llvm.org/viewvc/llvm-project?rev=225308&view=rev
Log:
Add isInfinity helper to ConstantFPSDNode

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=225308&r1=225307&r2=225308&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Tue Jan  6 17:00:43 2015
@@ -1418,6 +1418,9 @@ public:
   /// isNaN - Return true if the value is a NaN.
   bool isNaN() const { return Value->isNaN(); }
 
+  /// isInfinity - Return true if the value is an infinity
+  bool isInfinity() const { return Value->isInfinity(); }
+
   /// isExactlyValue - We don't rely on operator== working on double values, as
   /// it returns true for things that are clearly not equal, like -0.0 and 0.0.
   /// As such, this method can be used to do an exact bit-for-bit comparison of





More information about the llvm-commits mailing list