| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | FormatUtil.cpp | 22 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack() 25 assert(MaxLen >= 3); in truncateStringBack() 32 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle() 35 assert(MaxLen >= 3); in truncateStringMiddle() 43 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront() 46 assert(MaxLen >= 3); in truncateStringFront() 47 S = S.take_back(MaxLen - 3); in truncateStringFront() 54 if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen) in truncateQuotedNameFront() 57 assert(MaxLen >= RequiredExtraChars); in truncateQuotedNameFront() 65 if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen) in truncateQuotedNameBack() [all …]
|
| H A D | FormatUtil.h | 25 std::string truncateStringBack(StringRef S, uint32_t MaxLen); 26 std::string truncateStringMiddle(StringRef S, uint32_t MaxLen); 27 std::string truncateStringFront(StringRef S, uint32_t MaxLen); 29 uint32_t MaxLen); 31 uint32_t MaxLen);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/ |
| H A D | NVPTXTargetStreamer.cpp | 114 const unsigned MaxLen = 40; in emitRawBytes() 115 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes() 123 for (auto It = std::next(Data.bytes_begin(), I * MaxLen), in emitRawBytes() 126 : std::next(Data.bytes_begin(), (I + 1) * MaxLen); in emitRawBytes()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | string_utils.cpp | 31 constexpr uptr MaxLen = 30; in appendNumber() local 35 RAW_CHECK(MinNumberLength < MaxLen); in appendNumber() 41 uptr NumBuffer[MaxLen]; in appendNumber() 44 RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, in appendNumber()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 89 size_t MaxLen = 0; in getLongestEntryLength() local 91 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength() 92 return MaxLen; in getLongestEntryLength()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerDriver.cpp | 319 int RunOneTest(Fuzzer *F, const char *InputFilePath, size_t MaxLen) { in RunOneTest() argument 321 if (MaxLen && MaxLen < U.size()) in RunOneTest() 322 U.resize(MaxLen); in RunOneTest() 526 F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen)); in Merge() 677 Options.MaxLen = Flags.max_len; in FuzzerDriver() 856 RunOneTest(F, Path.c_str(), Options.MaxLen); in FuzzerDriver() 877 if (Options.MaxLen == 0) in FuzzerDriver() 885 size_t MaxLen = INT_MAX; // Large max length. in FuzzerDriver() local 890 MaxLen, /*ExitOnError=*/false); in FuzzerDriver()
|
| H A D | FuzzerOptions.h | 19 size_t MaxLen = 0; member
|
| H A D | FuzzerTracePC.cpp | 394 static size_t InternalStrnlen(const char *S, size_t MaxLen) { in InternalStrnlen() argument 396 for (; Len < MaxLen && S[Len]; Len++) {} in InternalStrnlen()
|
| H A D | FuzzerLoop.cpp | 156 MaxInputLen = MaxMutationLen = Options.MaxLen; in Fuzzer() 798 if (Options.MaxLen == 0) in ReadAndExecuteSeedCorpora()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString() local 158 unsigned Len = strnlen(Data, MaxLen); in getString() 161 if (Len == MaxLen && Data[Len - 1]) in getString()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64O0PreLegalizerCombiner.cpp | 94 unsigned MaxLen = 32; in combine() local 96 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in combine()
|
| H A D | AArch64PreLegalizerCombiner.cpp | 282 unsigned MaxLen = EnableOpt ? 0 : 32; in combine() local 284 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in combine()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 178 size_t MaxLen = 0; in printDynamicSection() local 180 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection() 181 std::string TagFmt = " %-" + std::to_string(MaxLen) + "s "; in printDynamicSection()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeRecordMapping.cpp | 219 Optional<uint32_t> MaxLen; in visitTypeBegin() local 222 MaxLen = MaxRecordLength - sizeof(RecordPrefix); in visitTypeBegin() 223 error(IO.beginRecord(MaxLen)); in visitTypeBegin()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BuildLibCalls.h | 60 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilderBase &B,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineTraceMetrics.cpp | 766 unsigned MaxLen = 0; in computeCrossBlockCriticalPath() local 776 MaxLen = std::max(MaxLen, Len); in computeCrossBlockCriticalPath() 778 return MaxLen; in computeCrossBlockCriticalPath()
|
| /freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ClangDiagnosticsEmitter.cpp | 1485 unsigned MaxLen = 0; in emitDiagTable() local 1488 MaxLen = std::max(MaxLen, (unsigned)I.first.size()); in emitDiagTable() 1501 OS << I.first << " */ " << std::string(MaxLen - I.first.size(), ' '); in emitDiagTable()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.h | 240 bool tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen = 0);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelDAGToDAGHVX.cpp | 900 unsigned MaxLen) { in findStrip() argument 901 assert(A.size() > 0 && A.size() >= MaxLen); in findStrip() 904 for (unsigned I = 1; I != MaxLen; ++I) { in findStrip() 909 return { F, MaxLen }; in findStrip()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 1574 bool CombinerHelper::tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen) { in tryCombineMemCpyFamily() argument 1616 if (MaxLen && KnownLen > MaxLen) in tryCombineMemCpyFamily()
|