From: Matt Arsenault Date: Tue, 6 Jan 2015 23:00:44 +0000 (+0000) Subject: Add isNegative helper to ConstantFPSDNode X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fe63e38cb588db9226000629af1067168e1f4dbe;p=oota-llvm.git Add isNegative helper to ConstantFPSDNode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225309 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 14581608b91..1e781a510dc 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1421,6 +1421,9 @@ public: /// isInfinity - Return true if the value is an infinity bool isInfinity() const { return Value->isInfinity(); } + /// isNegative - Return true if the value is negative. + bool isNegative() const { return Value->isNegative(); } + /// 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