Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DFormatUtil.cpp22 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) { in truncateStringBack() argument
23 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack()
26 assert(MaxLen >= 3); in truncateStringBack()
27 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringBack()
32 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) { in truncateStringMiddle() argument
33 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle()
36 assert(MaxLen >= 3); in truncateStringMiddle()
37 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringMiddle()
43 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) { in truncateStringFront() argument
44 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront()
[all …]
DFormatUtil.h26 std::string truncateStringBack(StringRef S, uint32_t MaxLen);
27 std::string truncateStringMiddle(StringRef S, uint32_t MaxLen);
28 std::string truncateStringFront(StringRef S, uint32_t MaxLen);
30 uint32_t MaxLen);
32 uint32_t MaxLen);
/external/llvm/lib/Fuzzer/
DFuzzerLoop.cpp159 if (CurrentUnitData || Options.MaxLen == 0) return; in LazyAllocateCurrentUnitData()
160 CurrentUnitData = new uint8_t[Options.MaxLen]; in LazyAllocateCurrentUnitData()
309 void Fuzzer::SetMaxLen(size_t MaxLen) { in SetMaxLen() argument
310 assert(Options.MaxLen == 0); // Can only reset MaxLen from 0 to non-0. in SetMaxLen()
311 assert(MaxLen); in SetMaxLen()
312 Options.MaxLen = MaxLen; in SetMaxLen()
313 Printf("INFO: -max_len is not provided, using %zd\n", Options.MaxLen); in SetMaxLen()
584 assert(Options.MaxLen > 0); in Merge()
586 ReadDirToVectorOfUnits(Corpora[0].c_str(), &Initial, nullptr, Options.MaxLen); in Merge()
588 ReadDirToVectorOfUnits(C.c_str(), &Extra, nullptr, Options.MaxLen); in Merge()
[all …]
DFuzzerDriver.cpp302 Options.MaxLen = Flags.max_len; in FuzzerDriver()
390 if (Options.MaxLen == 0) in FuzzerDriver()
396 size_t TemporaryMaxLen = Options.MaxLen ? Options.MaxLen : kMaxSaneLen; in FuzzerDriver()
403 if (Options.MaxLen == 0) in FuzzerDriver()
DFuzzerInternal.h208 size_t MaxLen = 0; member
414 void SetMaxLen(size_t MaxLen);
DFuzzerTraceState.cpp502 static size_t InternalStrnlen(const char *S, size_t MaxLen) { in InternalStrnlen() argument
504 for (; Len < MaxLen && S[Len]; Len++) {} in InternalStrnlen()
/external/llvm/lib/MC/
DSubtargetFeature.cpp87 size_t MaxLen = 0; in getLongestEntryLength() local
89 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
90 return MaxLen; in getLongestEntryLength()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DSubtargetFeature.cpp86 size_t MaxLen = 0; in getLongestEntryLength() local
88 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
89 return MaxLen; in getLongestEntryLength()
/external/lzma/CPP/7zip/UI/Console/
DPercentPrinter.h47 unsigned MaxLen; variable
53 MaxLen(80 - 1) in _tickStep()
DPercentPrinter.cpp140 if (!FileName.IsEmpty() && _s.Len() < MaxLen) in Print()
147 if (_s.Len() + _temp.Len() > MaxLen) in Print()
161 if (_s.Len() + _temp.Len() <= MaxLen) in Print()
DExtractCallbackConsole.h42 void SetWindowWidth(unsigned width) { _percent.MaxLen = width - 1; } in SetWindowWidth()
140 void SetWindowWidth(unsigned width) { _percent.MaxLen = width - 1; } in SetWindowWidth()
DUpdateCallbackConsole.h62 void SetWindowWidth(unsigned width) { _percent.MaxLen = width - 1; } in SetWindowWidth()
/external/swiftshader/third_party/LLVM/lib/MC/
DSubtargetFeature.cpp140 size_t MaxLen = 0; in getLongestEntryLength() local
142 MaxLen = std::max(MaxLen, std::strlen(Table[i].Key)); in getLongestEntryLength()
143 return MaxLen; in getLongestEntryLength()
/external/clang/lib/Lex/
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()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs23 public int MaxLen; field in SevenZip.CommandLineParser.SwitchForm
33 MaxLen = maxLen; in SwitchForm()
155 for (int i = minLen; i < switchForm.MaxLen && pos < len; i++, pos++) in ParseString()
/external/pdfium/testing/resources/
Dtext_form_multiple.in71 /MaxLen 10
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineOutliner.cpp893 unsigned MaxLen = 0; in findCandidates() local
1002 if (StringLen > MaxLen) in findCandidates()
1003 MaxLen = StringLen; in findCandidates()
1015 return MaxLen; in findCandidates()
DMachineTraceMetrics.cpp768 unsigned MaxLen = 0; in computeCrossBlockCriticalPath() local
778 MaxLen = std::max(MaxLen, Len); in computeCrossBlockCriticalPath()
780 return MaxLen; in computeCrossBlockCriticalPath()
/external/clang/utils/TableGen/
DClangDiagnosticsEmitter.cpp746 unsigned MaxLen = 0; in emitDiagTable() local
749 MaxLen = std::max(MaxLen, (unsigned)I.first.size()); in emitDiagTable()
762 OS << I.first << " */ " << std::string(MaxLen - I.first.size(), ' '); in emitDiagTable()
/external/llvm/include/llvm/Transforms/Utils/
DBuildLibCalls.h44 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DTypeRecordMapping.cpp91 Optional<uint32_t> MaxLen; in visitTypeBegin() local
94 MaxLen = MaxRecordLength - sizeof(RecordPrefix); in visitTypeBegin()
95 error(IO.beginRecord(MaxLen)); in visitTypeBegin()
/external/pdfium/third_party/lcms/src/
Dcmscgats.c417 … BuildAbsolutePath(const char *relPath, const char *basePath, char *buffer, cmsUInt32Number MaxLen) in BuildAbsolutePath() argument
425 strncpy(buffer, relPath, MaxLen); in BuildAbsolutePath()
426 buffer[MaxLen-1] = 0; in BuildAbsolutePath()
431 strncpy(buffer, basePath, MaxLen); in BuildAbsolutePath()
432 buffer[MaxLen-1] = 0; in BuildAbsolutePath()
438 if (len >= MaxLen) return FALSE; in BuildAbsolutePath()
441 strncpy(tail + 1, relPath, MaxLen - len); in BuildAbsolutePath()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DBuildLibCalls.h52 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
/external/llvm/lib/CodeGen/
DMachineTraceMetrics.cpp761 unsigned MaxLen = 0; in computeCrossBlockCriticalPath() local
771 MaxLen = std::max(MaxLen, Len); in computeCrossBlockCriticalPath()
773 return MaxLen; in computeCrossBlockCriticalPath()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAGHVX.cpp880 unsigned MaxLen) { in findStrip() argument
881 assert(A.size() > 0 && A.size() >= MaxLen); in findStrip()
884 for (unsigned I = 1; I != MaxLen; ++I) { in findStrip()
889 return { F, MaxLen }; in findStrip()