From 447e646ef71a95e1a005c24a7ddf7d4153318c0d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 6 Jan 2015 23:00:44 +0000 Subject: [PATCH] Add isNegative helper to ConstantFPSDNode llvm-svn: 225309 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 1458160..1e781a5 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/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 -- 2.7.4