projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd8c386
)
Add isInfinity to ConstantFP
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Fri, 10 Oct 2014 02:15:04 +0000
(
02:15
+0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Fri, 10 Oct 2014 02:15:04 +0000
(
02:15
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219463
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/Constants.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Constants.h
b/include/llvm/IR/Constants.h
index 122dda24a1d77fae482a0d6f97fb9015ebcfbb43..4823be000903fa46687352d56c182b47e394c9c9 100644
(file)
--- a/
include/llvm/IR/Constants.h
+++ b/
include/llvm/IR/Constants.h
@@
-264,6
+264,9
@@
public:
/// isNegative - Return true if the sign bit is set.
bool isNegative() const { return Val.isNegative(); }
+ /// isInfinity - Return true if the value is infinity
+ bool isInfinity() const { return Val.isInfinity(); }
+
/// isNaN - Return true if the value is a NaN.
bool isNaN() const { return Val.isNaN(); }