[llvm] r225309 - Add isNegative helper to ConstantFPSDNode
Matt Arsenault
Matthew.Arsenault at amd.com
Tue Jan 6 15:00:45 PST 2015
Author: arsenm
Date: Tue Jan 6 17:00:44 2015
New Revision: 225309
URL: http://llvm.org/viewvc/llvm-project?rev=225309&view=rev
Log:
Add isNegative helper to ConstantFPSDNode
Modified:
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=225309&r1=225308&r2=225309&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Tue Jan 6 17:00:44 2015
@@ -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
More information about the llvm-commits
mailing list