Skip to content

Commit cfbf324

Browse files
committed
changed more capitalization
1 parent 2d8fa9d commit cfbf324

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

llvm/include/llvm/ADT/APInt.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,11 +1413,11 @@ class [[nodiscard]] APInt {
14131413
U.pVal[whichWord(BitPosition)] &= Mask;
14141414
}
14151415

1416-
/// Clear the bits from loBit (inclusive) to hiBit (exclusive) to 0.
1417-
/// This function handles case when \p loBit <= \p hiBit.
1416+
/// Clear the bits from LoBit (inclusive) to HiBit (exclusive) to 0.
1417+
/// This function handles case when \p LoBit <= \p HiBit.
14181418
void clearBits(unsigned LoBit, unsigned HiBit) {
1419-
assert(HiBit <= BitWidth && "hiBit out of range");
1420-
assert(LoBit <= HiBit && "loBit greater than hiBit");
1419+
assert(HiBit <= BitWidth && "HiBit out of range");
1420+
assert(LoBit <= HiBit && "LoBit greater than HiBit");
14211421
if (LoBit == HiBit)
14221422
return;
14231423
if (HiBit <= APINT_BITS_PER_WORD) {
@@ -2071,7 +2071,7 @@ class [[nodiscard]] APInt {
20712071
void setBitsSlowCase(unsigned loBit, unsigned hiBit);
20722072

20732073
/// out-of-line slow case for clearBits.
2074-
void clearBitsSlowCase(unsigned loBit, unsigned hiBit);
2074+
void clearBitsSlowCase(unsigned LoBit, unsigned HiBit);
20752075

20762076
/// out-of-line slow case for flipAllBits.
20772077
void flipAllBitsSlowCase();

llvm/lib/Support/APInt.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ void APInt::clearBitsSlowCase(unsigned LoBit, unsigned HiBit) {
343343
// Create an initial mask for the low word with ones below loBit.
344344
uint64_t LoMask = ~(WORDTYPE_MAX << whichBit(LoBit));
345345

346-
// If hiBit is not aligned, we need a high mask.
346+
// If HiBit is not aligned, we need a high mask.
347347
unsigned HiShiftAmt = whichBit(HiBit);
348348
if (HiShiftAmt != 0) {
349-
// Create a high mask with ones above hiBit.
349+
// Create a high mask with ones above HiBit.
350350
uint64_t HiMask = ~(WORDTYPE_MAX >> (APINT_BITS_PER_WORD - HiShiftAmt));
351-
// If loWord and hiWord are equal, then we combine the masks. Otherwise,
352-
// set the bits in hiWord.
351+
// If LoWord and HiWord are equal, then we combine the masks. Otherwise,
352+
// set the bits in HiWord.
353353
if (HiWord == LoWord)
354354
LoMask &= HiMask;
355355
else
@@ -358,7 +358,7 @@ void APInt::clearBitsSlowCase(unsigned LoBit, unsigned HiBit) {
358358
// Apply the mask to the low word.
359359
U.pVal[LoWord] &= LoMask;
360360

361-
// Fill any words between loWord and hiWord with all zeros.
361+
// Fill any words between LoWord and HiWord with all zeros.
362362
for (unsigned Word = LoWord + 1; Word < HiWord; ++Word)
363363
U.pVal[Word] = 0;
364364
}

0 commit comments

Comments
 (0)