From: Matt Arsenault Date: Fri, 10 Oct 2014 02:15:04 +0000 (+0000) Subject: Add isInfinity to ConstantFP X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47280738838a94f035d2e43c69e4c7563569a0e7;p=oota-llvm.git Add isInfinity to ConstantFP git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219463 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Constants.h b/include/llvm/IR/Constants.h index 122dda24a1d..4823be00090 100644 --- a/include/llvm/IR/Constants.h +++ b/include/llvm/IR/Constants.h @@ -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(); }