Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/SystemZ/
H A DzOSSupport.h40 inline std::size_t strnlen(const char *S, std::size_t MaxLen) { in strnlen() argument
42 static_cast<const char *>(std::memchr(S, '\0', MaxLen)); in strnlen()
43 return PtrToNullChar ? PtrToNullChar - S : MaxLen; in strnlen()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LoopIdiomTransform.cpp103 Instruction *Index, Value *Start, Value *MaxLen);
286 Value *MaxLen; in recognizeByteCompare() local
289 m_Br(m_ICmp(Pred, m_Specific(Index), m_Value(MaxLen)), in recognizeByteCompare()
374 ((WhileCondVal != Index && WhileCondVal != MaxLen) || in recognizeByteCompare()
483 Value *ExtEnd = Builder.CreateZExt(MaxLen, I64Type); in expandFindMismatch()
486 Value *LimitCheck = Builder.CreateICmpULE(Start, MaxLen); in expandFindMismatch()
691 Value *IVCmp = Builder.CreateICmpEQ(PhiInc, MaxLen); in expandFindMismatch()
707 ResPhi->addIncoming(MaxLen, LoopIncBlock); in expandFindMismatch()
709 ResPhi->addIncoming(MaxLen, SVELoopIncBlock); in expandFindMismatch()
728 Value *MaxLen, Instruction *Index, Value *Start, bool IncIdx, in transformByteCompare() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp117 const unsigned MaxLen = 40; in emitRawBytes()
118 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
126 for (auto It = std::next(Data.bytes_begin(), I * MaxLen), in emitRawBytes()
129 : std::next(Data.bytes_begin(), (I + 1) * MaxLen); in emitRawBytes()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dstring_utils.cpp31 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-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp90 size_t MaxLen = 0; in getLongestEntryLength() local
92 MaxLen = std::max(MaxLen, std::strlen(I.Key)); in getLongestEntryLength()
93 return MaxLen; in getLongestEntryLength()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDriver.cpp323 int RunOneTest(Fuzzer *F, const char *InputFilePath, size_t MaxLen) { in RunOneTest() argument
325 if (MaxLen && MaxLen < U.size()) in RunOneTest()
326 U.resize(MaxLen); in RunOneTest()
530 F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen)); in Merge()
682 Options.MaxLen = Flags.max_len; in FuzzerDriver()
862 RunOneTest(F, Path.c_str(), Options.MaxLen); in FuzzerDriver()
884 if (Options.MaxLen == 0) in FuzzerDriver()
893 size_t MaxLen = INT_MAX; // Large max length. in FuzzerDriver() local
898 MaxLen, /*ExitOnError=*/false); in FuzzerDriver()
H A DFuzzerOptions.h19 size_t MaxLen = 0; member
H A DFuzzerTracePC.cpp396 static size_t InternalStrnlen(const char *S, size_t MaxLen) { in InternalStrnlen() argument
398 for (; Len < MaxLen && S[Len]; Len++) {} in InternalStrnlen()
H A DFuzzerLoop.cpp156 MaxInputLen = MaxMutationLen = Options.MaxLen; in Fuzzer()
801 if (Options.MaxLen == 0) in ReadAndExecuteSeedCorpora()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64O0PreLegalizerCombiner.cpp104 unsigned MaxLen = 32; in tryCombineAll() local
106 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in tryCombineAll()
H A DAArch64PreLegalizerCombiner.cpp736 unsigned MaxLen = CInfo.EnableOpt ? 0 : 32; in tryCombineAll() local
738 if (Helper.tryCombineMemCpyFamily(MI, MaxLen)) in tryCombineAll()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp215 size_t MaxLen = 0; in printDynamicSection() local
217 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection()
218 std::string TagFmt = " %-" + std::to_string(MaxLen) + "s "; in printDynamicSection()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineTraceMetrics.cpp779 unsigned MaxLen = 0; in computeCrossBlockCriticalPath() local
789 MaxLen = std::max(MaxLen, Len); in computeCrossBlockCriticalPath()
791 return MaxLen; in computeCrossBlockCriticalPath()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeRecordMapping.cpp239 std::optional<uint32_t> MaxLen; in visitTypeBegin() local
242 MaxLen = MaxRecordLength - sizeof(RecordPrefix); in visitTypeBegin()
243 error(IO.beginRecord(MaxLen)); in visitTypeBegin()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerHelper.h424 LegalizeResult lowerMemCpyFamily(MachineInstr &MI, unsigned MaxLen = 0);
H A DCombinerHelper.h293 bool tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen = 0);
/freebsd-14.2/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp1498 unsigned MaxLen = 0; in emitDiagTable() local
1501 MaxLen = std::max(MaxLen, (unsigned)I.first.size()); in emitDiagTable()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp1020 unsigned MaxLen) { in findStrip() argument
1021 assert(A.size() > 0 && A.size() >= MaxLen); in findStrip()
1024 for (unsigned I = 1; I != MaxLen; ++I) { in findStrip()
1029 return { F, MaxLen }; in findStrip()
H A DHexagonISelLoweringHVX.cpp2374 unsigned MaxLen = std::max(Len0, Len1); in typeWidenToWider() local
2375 return {MVT::getVectorVT(Ty0.getVectorElementType(), MaxLen), in typeWidenToWider()
2376 MVT::getVectorVT(Ty1.getVectorElementType(), MaxLen)}; in typeWidenToWider()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp8606 LegalizerHelper::lowerMemCpyFamily(MachineInstr &MI, unsigned MaxLen) { in lowerMemCpyFamily() argument
8647 if (MaxLen && KnownLen > MaxLen) in lowerMemCpyFamily()
H A DCombinerHelper.cpp1484 bool CombinerHelper::tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen) { in tryCombineMemCpyFamily() argument
1488 return Helper.lowerMemCpyFamily(MI, MaxLen) == in tryCombineMemCpyFamily()