[llvm] 78c6b90 - [APInt] Update APInt::isShiftedMask() description. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 4 12:39:20 PST 2022


Author: Simon Pilgrim
Date: 2022-02-04T20:39:05Z
New Revision: 78c6b90000292eb37aac5dead6ab26611cd76f42

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

LOG: [APInt] Update APInt::isShiftedMask() description. NFC.

Make it clear that it matches a non-empty sequence of ones, matches the descriptions for isShiftedMask_32/64 as suggested on D119019

Added: 
    

Modified: 
    llvm/include/llvm/ADT/APInt.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index b1fc85d3c09d9..0fdcbb6c3dfbc 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -486,7 +486,7 @@ class LLVM_NODISCARD APInt {
     return (Ones > 0) && ((Ones + countLeadingZerosSlowCase()) == BitWidth);
   }
 
-  /// Return true if this APInt value contains a sequence of ones with
+  /// Return true if this APInt value contains a non-empty sequence of ones with
   /// the remainder zero.
   bool isShiftedMask() const {
     if (isSingleWord())


        


More information about the llvm-commits mailing list