summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-06 23:00:43 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-06 23:00:43 +0000
commit95212a65a09ec855c7dc46df02208f13438c2dc9 (patch)
treec97a9996058bab5577d6c49c81f5246e123a2be0
parent6f6233dc587fff2d47a38a917793701be6650aa1 (diff)
downloadbcm5719-llvm-95212a65a09ec855c7dc46df02208f13438c2dc9.tar.gz
bcm5719-llvm-95212a65a09ec855c7dc46df02208f13438c2dc9.zip
Add isInfinity helper to ConstantFPSDNode
llvm-svn: 225308
-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 1006edb7c2d..14581608b91 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
OpenPOWER on IntegriCloud