[Support] Explicitly state that KnownBits::getMinValue/getMaxValue are UNSIGNED value...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 23 Dec 2020 14:18:07 +0000 (14:18 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Dec 2020 14:10:11 +0000 (14:10 +0000)
Update the comment to make this clear, following the same approach as APInt.

llvm/include/llvm/Support/KnownBits.h

index f55839a35c13621e3f3fe61888acabbb6c9a4be9..2acaecfc344020034309549dbcbbdbb1843d53c9 100644 (file)
@@ -113,13 +113,13 @@ public:
     Zero.setSignBit();
   }
 
-  /// Return the minimal value possible given these KnownBits.
+  /// Return the minimal unsigned value possible given these KnownBits.
   APInt getMinValue() const {
     // Assume that all bits that aren't known-ones are zeros.
     return One;
   }
 
-  /// Return the maximal value possible given these KnownBits.
+  /// Return the maximal unsigned value possible given these KnownBits.
   APInt getMaxValue() const {
     // Assume that all bits that aren't known-zeros are ones.
     return ~Zero;