summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-06 23:00:44 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-06 23:00:44 +0000
commit447e646ef71a95e1a005c24a7ddf7d4153318c0d (patch)
tree1749280324e5a1d2aa3ca0c66b79e066584f474b
parent95212a65a09ec855c7dc46df02208f13438c2dc9 (diff)
downloadbcm5719-llvm-447e646ef71a95e1a005c24a7ddf7d4153318c0d.tar.gz
bcm5719-llvm-447e646ef71a95e1a005c24a7ddf7d4153318c0d.zip
Add isNegative helper to ConstantFPSDNode
llvm-svn: 225309
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 14581608b91..1e781a510dc 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
OpenPOWER on IntegriCloud