From 47280738838a94f035d2e43c69e4c7563569a0e7 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 10 Oct 2014 02:15:04 +0000 Subject: [PATCH] Add isInfinity to ConstantFP git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219463 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Constants.h | 3 +++ 1 file changed, 3 insertions(+) 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(); }