Home
last modified time | relevance | path

Searched refs:MaxLen (Results 1 – 19 of 19) sorted by relevance

/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
H A DFormatUtil.cpp22 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 DFormatUtil.h25 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);
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp114 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()
/netbsd/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerDriver.cpp276 int RunOneTest(Fuzzer *F, const char *InputFilePath, size_t MaxLen) { in RunOneTest() argument
278 if (MaxLen && MaxLen < U.size()) in RunOneTest()
279 U.resize(MaxLen); in RunOneTest()
571 Options.MaxLen = Flags.max_len; in FuzzerDriver()
713 RunOneTest(F, Path.c_str(), Options.MaxLen); in FuzzerDriver()
736 if (Options.MaxLen == 0) in FuzzerDriver()
744 size_t MaxLen = INT_MAX; // Large max length. in FuzzerDriver() local
749 MaxLen, /*ExitOnError=*/false); in FuzzerDriver()
H A DFuzzerOptions.h20 size_t MaxLen = 0; member
H A DFuzzerTracePC.cpp456 static size_t InternalStrnlen(const char *S, size_t MaxLen) { in InternalStrnlen() argument
458 for (; Len < MaxLen && S[Len]; Len++) {} in InternalStrnlen()
H A DFuzzerLoop.cpp159 MaxInputLen = MaxMutationLen = Options.MaxLen; in Fuzzer()
755 if (Options.MaxLen == 0) in ReadAndExecuteSeedCorpora()
/netbsd/external/apache2/llvm/dist/llvm/lib/MC/
H A DMCSubtargetInfo.cpp89 size_t MaxLen = 0; in getLongestEntryLength() local
91 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
92 return MaxLen; in getLongestEntryLength()
/netbsd/external/apache2/llvm/dist/clang/lib/Lex/
H A DHeaderMap.cpp157 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()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
H A DAArch64O0PreLegalizerCombiner.cpp92 unsigned MaxLen = 32; in combine() local
94 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in combine()
H A DAArch64PreLegalizerCombiner.cpp280 unsigned MaxLen = EnableOpt ? 0 : 32; in combine() local
282 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in combine()
/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-objdump/
H A DELFDump.cpp178 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()
/netbsd/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/
H A DTypeRecordMapping.cpp219 Optional<uint32_t> MaxLen; in visitTypeBegin() local
222 MaxLen = MaxRecordLength - sizeof(RecordPrefix); in visitTypeBegin()
223 error(IO.beginRecord(MaxLen)); in visitTypeBegin()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineTraceMetrics.cpp766 unsigned MaxLen = 0; in computeCrossBlockCriticalPath() local
776 MaxLen = std::max(MaxLen, Len); in computeCrossBlockCriticalPath()
778 return MaxLen; in computeCrossBlockCriticalPath()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h60 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilderBase &B,
/netbsd/external/apache2/llvm/dist/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp1485 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()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h239 bool tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen = 0);
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp892 unsigned MaxLen) { in findStrip() argument
893 assert(A.size() > 0 && A.size() >= MaxLen); in findStrip()
896 for (unsigned I = 1; I != MaxLen; ++I) { in findStrip()
901 return { F, MaxLen }; in findStrip()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1544 bool CombinerHelper::tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen) { in tryCombineMemCpyFamily() argument
1581 if (MaxLen && KnownLen > MaxLen) in tryCombineMemCpyFamily()