aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-09-24 15:01:54 -0700
committerCraig Topper <craig.topper@intel.com>2020-09-25 16:26:46 -0700
commitb5f46534c4dd5ac32bc3b63685de1d66eec96595 (patch)
treebc14b62c0562f152e1faeccd9581e9dfaf1b0f69
parent0291c471aad4bf8422405586e2bf80cb8df25980 (diff)
downloadllvm-b5f46534c4dd5ac32bc3b63685de1d66eec96595.zip
llvm-b5f46534c4dd5ac32bc3b63685de1d66eec96595.tar.gz
llvm-b5f46534c4dd5ac32bc3b63685de1d66eec96595.tar.bz2
[IR] Improve the description for Constant::isNormalFP to list all things that are not normal instead of just denormal. NFC
-rw-r--r--llvm/include/llvm/IR/Constant.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Constant.h b/llvm/include/llvm/IR/Constant.h
index 41b3414..f4cdef2 100644
--- a/llvm/include/llvm/IR/Constant.h
+++ b/llvm/include/llvm/IR/Constant.h
@@ -82,8 +82,9 @@ public:
/// elements.
bool isFiniteNonZeroFP() const;
- /// Return true if this is a normal (as opposed to denormal) floating-point
- /// scalar constant or a vector constant with all normal elements.
+ /// Return true if this is a normal (as opposed to denormal, infinity, nan,
+ /// or zero) floating-point scalar constant or a vector constant with all
+ /// normal elements. See APFloat::isNormal.
bool isNormalFP() const;
/// Return true if this scalar has an exact multiplicative inverse or this