[llvm] b5f4653 - [IR] Improve the description for Constant::isNormalFP to list all things that are not normal instead of just denormal. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 16:27:26 PDT 2020


Author: Craig Topper
Date: 2020-09-25T16:26:46-07:00
New Revision: b5f46534c4dd5ac32bc3b63685de1d66eec96595

URL: https://github.com/llvm/llvm-project/commit/b5f46534c4dd5ac32bc3b63685de1d66eec96595
DIFF: https://github.com/llvm/llvm-project/commit/b5f46534c4dd5ac32bc3b63685de1d66eec96595.diff

LOG: [IR] Improve the description for Constant::isNormalFP to list all things that are not normal instead of just denormal. NFC

Added: 
    

Modified: 
    llvm/include/llvm/IR/Constant.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Constant.h b/llvm/include/llvm/IR/Constant.h
index 41b3414f171b..f4cdef2af774 100644
--- a/llvm/include/llvm/IR/Constant.h
+++ b/llvm/include/llvm/IR/Constant.h
@@ -82,8 +82,9 @@ class Constant : public User {
   /// 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


        


More information about the llvm-commits mailing list