From: Matt Arsenault Date: Tue, 6 Jan 2015 23:00:43 +0000 (+0000) Subject: Add isInfinity helper to ConstantFPSDNode X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95212a65a09ec855c7dc46df02208f13438c2dc9;p=platform%2Fupstream%2Fllvm.git Add isInfinity helper to ConstantFPSDNode llvm-svn: 225308 --- diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 1006edb..1458160 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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