| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | StringView.h | 25 size_t Len; variable 50 if (Len == 0) in StringView() 85 if (int Res = compareMemory(Data, Other.Data, min(Len, Other.Len))) in compare() 88 if (Len == Other.Len) in compare() 90 return Len < Other.Len ? -1 : 1; in compare() 95 return (Len == Other.Len && in equals() 111 Len -= N; in remove_prefix() 131 return Len >= Prefix.Len && in starts_with() 147 return Len >= Suffix.Len && in ends_with() 148 compareMemory(end() - Suffix.Len, Suffix.Data, Suffix.Len) == 0; in ends_with() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Demangle/ |
| H A D | DLangDemangle.cpp | 275 unsigned long Len; in parseSymbolBackref() local 412 unsigned long Len; in parseIdentifier() local 427 if (strlen(Endptr) < Len) in parseIdentifier() 444 Mangled += Len; in parseIdentifier() 484 switch (Len) { in parseLName() 490 Mangled += Len; in parseLName() 497 Mangled += Len; in parseLName() 507 Mangled += Len; in parseLName() 517 Mangled += Len; in parseLName() 527 Mangled += Len; in parseLName() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/profile/ContinuousSyncMode/ |
| H A D | pid-substitution.c | 24 int Len = strlen(Filename); in main() local 25 --Len; in main() 26 while (Filename[Len] != '-') in main() 27 --Len; in main() 29 const char *PidStr = Filename + Len + 1; in main()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | ScratchBuffer.cpp | 33 SourceLocation ScratchBuffer::getToken(const char *Buf, unsigned Len, in getToken() argument 35 if (BytesUsed+Len+2 > ScratchBufSize) in getToken() 36 AllocScratchBuffer(Len+2); in getToken() 54 memcpy(CurBuffer+BytesUsed, Buf, Len); in getToken() 57 BytesUsed += Len+1; in getToken() 64 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | SuffixTree.cpp | 103 if (Active.Len == 0) { in extend() 133 if (Active.Len >= SubstringLen) { in extend() 137 Active.Len -= SubstringLen; in extend() 147 if (Str[NextNode->StartIdx + Active.Len] == LastChar) { in extend() 156 Active.Len++; in extend() 176 NextNode->StartIdx + Active.Len - 1, FirstChar); in extend() 184 NextNode->StartIdx += Active.Len; in extend() 199 if (Active.Len > 0) { in extend() 200 Active.Len--; in extend()
|
| H A D | TrigramIndex.cpp | 34 unsigned Len = 0; in insert() local 50 Len = 0; in insert() 61 Len++; in insert() 62 if (Len < 3) in insert()
|
| H A D | Valgrind.cpp | 26 void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) { in ValgrindDiscardTranslations() argument 27 VALGRIND_DISCARD_TRANSLATIONS(Addr, Len); in ValgrindDiscardTranslations() 36 void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) { in ValgrindDiscardTranslations() argument
|
| H A D | NativeFormatting.cpp | 61 size_t Len = 0; in write_unsigned_impl() local 62 Len = format_to_buffer(N, NumberBuffer); in write_unsigned_impl() 67 if (Len < MinDigits && Style != IntegerStyle::Number) { in write_unsigned_impl() 68 for (size_t I = Len; I < MinDigits; ++I) in write_unsigned_impl() 73 writeWithCommas(S, ArrayRef<char>(std::end(NumberBuffer) - Len, Len)); in write_unsigned_impl() 75 S.write(std::end(NumberBuffer) - Len, Len); in write_unsigned_impl()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | Commit.cpp | 93 unsigned Len; in remove() local 94 if (!canRemoveRange(range, Offs, Len)) { in remove() 99 addRemove(range.getBegin(), Offs, Len); in remove() 121 unsigned Len; in replace() local 127 addRemove(range.getBegin(), Offs, Len); in replace() 171 unsigned Len; in replaceText() local 177 addRemove(loc, Offs, Len); in replaceText() 214 if (Len == 0) in addRemove() 221 data.Length = Len; in addRemove() 319 Len = endInfo.second - beginInfo.second; in canRemoveRange() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | StrcmpTest.cpp | 14 size_t Len = strlen(Str); in Eq() local 15 if (Size < Len) return false; in Eq() 16 if (Len >= sizeof(Buff)) return false; in Eq() 17 memcpy(Buff, (const char*)Data, Len); in Eq() 18 Buff[Len] = 0; in Eq()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBSymbolData.cpp | 21 auto Len = RawSymbol->getLength(); in getLineNumbers() local 22 Len = Len ? Len : 1; in getLineNumbers() 24 return Session.findLineNumbersByRVA(RVA, Len); in getLineNumbers() 28 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ShuffleDecode.cpp | 404 Len &= 0x3F; in DecodeEXTRQIMask() 413 if (Len == 0) in DecodeEXTRQIMask() 414 Len = 64; in DecodeEXTRQIMask() 417 if ((Len + Idx) > 64) { in DecodeEXTRQIMask() 423 Len /= EltSize; in DecodeEXTRQIMask() 428 for (int i = 0; i != Len; ++i) in DecodeEXTRQIMask() 441 Len &= 0x3F; in DecodeINSERTQIMask() 450 if (Len == 0) in DecodeINSERTQIMask() 451 Len = 64; in DecodeINSERTQIMask() 454 if ((Len + Idx) > 64) { in DecodeINSERTQIMask() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Demangle/ |
| H A D | StringView.h | 36 StringView(const char *First_, size_t Len) in StringView() argument 37 : First(First_), Last(First_ + Len) {} in StringView() 41 StringView substr(size_t Pos, size_t Len = npos) const { 43 if (Len > size() - Pos) 44 Len = size() - Pos; 45 return StringView(begin() + Pos, Len);
|
| /llvm-project-15.0.7/libcxxabi/src/demangle/ |
| H A D | StringView.h | 36 StringView(const char *First_, size_t Len) in StringView() argument 37 : First(First_), Last(First_ + Len) {} in StringView() 41 StringView substr(size_t Pos, size_t Len = npos) const { 43 if (Len > size() - Pos) 44 Len = size() - Pos; 45 return StringView(begin() + Pos, Len);
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | RIFF.cpp | 23 uint32_t Len = llvm::support::endian::read32le(Stream.take_front(4).begin()); in readChunk() local 25 if (Stream.size() < Len) in readChunk() 26 return error("truncated chunk: want {0}, got {1}", Len, Stream.size()); in readChunk() 27 C.Data = Stream.take_front(Len); in readChunk() 28 Stream = Stream.drop_front(Len); in readChunk() 29 if ((Len % 2) && !Stream.empty()) { // Skip padding byte. in readChunk()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | BuildLibCalls.h | 104 Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, 119 Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, 124 Value *emitStpNCpy(Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, 129 Value *emitMemCpyChk(Value *Dst, Value *Src, Value *Len, Value *ObjSize, 134 Value *emitMemPCpy(Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, 139 Value *emitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilderBase &B, 143 Value *emitMemRChr(Value *Ptr, Value *Val, Value *Len, IRBuilderBase &B, 147 Value *emitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, 151 Value *emitBCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, 155 Value *emitMemCCpy(Value *Ptr1, Value *Ptr2, Value *Val, Value *Len,
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineOutliner.h | 43 unsigned Len = 0; member 120 unsigned getLength() const { return Len; } in getLength() 126 unsigned getEndIdx() const { return StartIdx + Len - 1; } in getEndIdx() 196 Candidate(unsigned StartIdx, unsigned Len, in Candidate() 200 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | OnDiskHashTable.h | 188 const std::pair<offset_type, offset_type> &Len = in Emit() local 191 InfoObj.EmitKey(Out, I->Key, Len.first); in Emit() 192 InfoObj.EmitData(Out, I->Key, I->Data, Len.second); in Emit() 197 InfoObj.EmitKey(Out, I->Key, Len.first); in Emit() 199 InfoObj.EmitData(Out, I->Key, I->Data, Len.second); in Emit() 201 assert(offset_type(DataStart - KeyStart) == Len.first && in Emit() 203 assert(offset_type(End - DataStart) == Len.second && in Emit() 324 const offset_type Len; variable 331 : Key(K), Data(D), Len(L), InfoObj(InfoObj) {} in iterator() 336 offset_type getDataLen() const { return Len; } in getDataLen() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | SelectorLocationsKind.cpp | 30 unsigned Len = II ? II->getLength() : 0; in getStandardSelLoc() local 31 return EndLoc.getLocWithOffset(-Len); in getStandardSelLoc() 38 unsigned Len = /* selector id */ (II ? II->getLength() : 0) + /* ':' */ 1; in getStandardSelLoc() local 40 ++Len; in getStandardSelLoc() 41 return ArgLoc.getLocWithOffset(-Len); in getStandardSelLoc()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerTracePC.cpp | 351 size_t Len = std::min(n, Word::GetMaxSize()); in AddValueForMemcmp() local 359 for (size_t i = 0; i < Len; i++) { in AddValueForMemcmp() 367 for (; I < Len; I++) { in AddValueForMemcmp() 377 TORCW.Insert(Idx ^ Hash, Word(B1, Len), Word(B2, Len)); in AddValueForMemcmp() 397 size_t Len = 0; in InternalStrnlen() local 398 for (; Len < MaxLen && S[Len]; Len++) {} in InternalStrnlen() 399 return Len; in InternalStrnlen() 406 size_t Len = 0; in InternalStrnlen2() local 407 for (; S1[Len] && S2[Len]; Len++) {} in InternalStrnlen2() 408 return Len; in InternalStrnlen2()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | SuffixTreeTest.cpp | 51 unsigned Len; in TEST() local 53 Len = RS.Length; in TEST() 54 bool IsExpectedLen = (Len == 3u || Len == 2u); in TEST() 58 if (Len == 3u) { in TEST()
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | RewriteRope.cpp | 775 unsigned Len = End-Start; in MakeRopeString() local 776 assert(Len && "Zero length RopePiece is invalid!"); in MakeRopeString() 779 if (AllocOffs+Len <= AllocChunkSize) { in MakeRopeString() 780 memcpy(AllocBuffer->Data+AllocOffs, Start, Len); in MakeRopeString() 781 AllocOffs += Len; in MakeRopeString() 782 return RopePiece(AllocBuffer, AllocOffs-Len, AllocOffs); in MakeRopeString() 787 if (Len > AllocChunkSize) { in MakeRopeString() 801 memcpy(Res->Data, Start, Len); in MakeRopeString() 803 AllocOffs = Len; in MakeRopeString() 805 return RopePiece(AllocBuffer, 0, Len); in MakeRopeString()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugChecksumsSubsection.cpp | 35 operator()(BinaryStreamRef Stream, uint32_t &Len, FileChecksumEntry &Item) { in operator ()() argument 47 Len = alignTo(Header->ChecksumSize + sizeof(FileChecksumEntryHeader), 4); in operator ()() 86 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); in addChecksum() local 87 SerializedSize += Len; in addChecksum()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZMCCodeEmitter.cpp | 252 uint64_t Len = getMachineOpValue(MI, MI.getOperand(OpNum + 2), Fixups, STI) - 1; in getBDLAddr12Len4Encoding() local 253 assert(isUInt<4>(Base) && isUInt<12>(Disp) && isUInt<4>(Len)); in getBDLAddr12Len4Encoding() 254 return (Len << 16) | (Base << 12) | Disp; in getBDLAddr12Len4Encoding() 263 uint64_t Len = getMachineOpValue(MI, MI.getOperand(OpNum + 2), Fixups, STI) - 1; in getBDLAddr12Len8Encoding() local 264 assert(isUInt<4>(Base) && isUInt<12>(Disp) && isUInt<8>(Len)); in getBDLAddr12Len8Encoding() 265 return (Len << 16) | (Base << 12) | Disp; in getBDLAddr12Len8Encoding() 274 uint64_t Len = getMachineOpValue(MI, MI.getOperand(OpNum + 2), Fixups, STI); in getBDRAddr12Encoding() local 275 assert(isUInt<4>(Base) && isUInt<12>(Disp) && isUInt<4>(Len)); in getBDRAddr12Encoding() 276 return (Len << 16) | (Base << 12) | Disp; in getBDRAddr12Encoding()
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPort.h | 58 #define COMPILER_RT_GETHOSTNAME(Name, Len) ((void)(Name), (void)(Len), (-1)) argument 60 #define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len) argument
|