[llvm] r219463 - Add isInfinity to ConstantFP

Matt Arsenault Matthew.Arsenault at amd.com
Thu Oct 9 19:15:04 PDT 2014


Author: arsenm
Date: Thu Oct  9 21:15:04 2014
New Revision: 219463

URL: http://llvm.org/viewvc/llvm-project?rev=219463&view=rev
Log:
Add isInfinity to ConstantFP

Modified:
    llvm/trunk/include/llvm/IR/Constants.h

Modified: llvm/trunk/include/llvm/IR/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Constants.h?rev=219463&r1=219462&r2=219463&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Constants.h (original)
+++ llvm/trunk/include/llvm/IR/Constants.h Thu Oct  9 21:15:04 2014
@@ -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(); }
 





More information about the llvm-commits mailing list