diff options
author | Craig Topper <craig.topper@intel.com> | 2020-09-24 15:01:54 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-09-25 16:26:46 -0700 |
commit | b5f46534c4dd5ac32bc3b63685de1d66eec96595 (patch) | |
tree | bc14b62c0562f152e1faeccd9581e9dfaf1b0f69 | |
parent | 0291c471aad4bf8422405586e2bf80cb8df25980 (diff) | |
download | llvm-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.h | 5 |
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 |