Add isInfinity to ConstantFP
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 10 Oct 2014 02:15:04 +0000 (02:15 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 10 Oct 2014 02:15:04 +0000 (02:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219463 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Constants.h

index 122dda24a1d77fae482a0d6f97fb9015ebcfbb43..4823be000903fa46687352d56c182b47e394c9c9 100644 (file)
@@ -264,6 +264,9 @@ public:
   /// isNegative - Return true if the sign bit is set.
   bool isNegative() const { return Val.isNegative(); }
 
+  /// isInfinity - Return true if the value is infinity
+  bool isInfinity() const { return Val.isInfinity(); }
+
   /// isNaN - Return true if the value is a NaN.
   bool isNaN() const { return Val.isNaN(); }