Home
last modified time | relevance | path

Searched refs:NumChars (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DStringMatcher.cpp86 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar() local
89 if (NumChars == 1) { in EmitStringMatcherForChar()
99 << ", \"" << Matches[0]->first.substr(CharNo, NumChars) << "\", " in EmitStringMatcherForChar()
100 << NumChars << ") != 0)\n"; in EmitStringMatcherForChar()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dstring_utils.cpp85 int NumChars = 0; in appendString() local
87 if (MaxChars >= 0 && NumChars >= MaxChars) in appendString()
90 NumChars++; in appendString()
94 Width = -Width - NumChars; in appendString()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DNativeFormatting.cpp147 unsigned NumChars = in write_hex() local
154 char *EndPtr = NumberBuffer + NumChars; in write_hex()
162 S.write(NumberBuffer, NumChars); in write_hex()
H A Draw_ostream.cpp477 static raw_ostream &write_padding(raw_ostream &OS, unsigned NumChars) { in write_padding() argument
485 if (NumChars < std::size(Chars)) in write_padding()
486 return OS.write(Chars, NumChars); in write_padding()
488 while (NumChars) { in write_padding()
489 unsigned NumToWrite = std::min(NumChars, (unsigned)std::size(Chars) - 1); in write_padding()
491 NumChars -= NumToWrite; in write_padding()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp1259 static unsigned guessCharByteSize(const uint8_t *StringBytes, unsigned NumChars, in guessCharByteSize() argument
1271 unsigned TrailingNulls = countTrailingNullBytes(StringBytes, NumChars); in guessCharByteSize()
1285 unsigned Nulls = countEmbeddedNulls(StringBytes, NumChars); in guessCharByteSize()
1286 if (Nulls >= 2 * NumChars / 3 && NumBytes % 4 == 0) in guessCharByteSize()
1288 if (Nulls >= NumChars / 3) in guessCharByteSize()
1418 const unsigned NumChars = BytesDecoded / CharBytes; in demangleStringLiteral() local
1419 for (unsigned CharIndex = 0; CharIndex < NumChars; ++CharIndex) { in demangleStringLiteral()
1422 if (CharIndex + 1 < NumChars || Result->IsTruncated) in demangleStringLiteral()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp139 llvm::Type *getByteArrayType(CharUnits NumChars) const { in getByteArrayType()
140 assert(!NumChars.isZero() && "Empty byte arrays aren't allowed."); in getByteArrayType()
142 return NumChars == CharUnits::One() ? Type : in getByteArrayType()
143 (llvm::Type *)llvm::ArrayType::get(Type, NumChars.getQuantity()); in getByteArrayType()
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.cpp81 for (unsigned NumChars = 0; in getCommentSplit() local
82 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
85 NumChars += encoding::columnWidthWithTabs( in getCommentSplit()
86 Text.substr(MaxSplitBytes, BytesInChar), ContentStartColumn + NumChars, in getCommentSplit()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DSveEmitter.cpp1014 unsigned NumChars = End - Pos + 1; in replaceTemplatedArgs() local
1015 assert(NumChars == 3 && "Unexpected template argument"); in replaceTemplatedArgs()
1045 Ret.replace(Pos, NumChars, TypeCode + utostr(T.getElementSizeInBits())); in replaceTemplatedArgs()