Home
last modified time | relevance | path

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

123

/openbsd/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.h35 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize);
41 size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize);
49 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize);
51 size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize);
55 size_t MaxSize);
62 size_t MaxSize);
74 size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize);
79 size_t MutateWithMask(uint8_t *Data, size_t Size, size_t MaxSize,
84 size_t DefaultMutate(uint8_t *Data, size_t Size, size_t MaxSize);
105 size_t MaxSize);
[all …]
H A DFuzzerMutate.cpp134 if (Size >= MaxSize) return 0; in Mutate_InsertByte()
149 assert(Size + N <= MaxSize && N); in Mutate_InsertRepeatedBytes()
163 if (Size > MaxSize) return 0; in Mutate_ChangeByte()
171 if (Size > MaxSize) return 0; in Mutate_ChangeBit()
305 if (Size > MaxSize) return 0; in AddWordFromDictionary()
369 if (Size > MaxSize) return 0; in Mutate_ChangeASCIIInteger()
429 if (Size > MaxSize) return 0; in Mutate_ChangeBinaryInteger()
442 if (Size > MaxSize) return 0; in Mutate_CrossOver()
450 MutateInPlaceHere.resize(MaxSize); in Mutate_CrossOver()
544 assert(MaxSize > 0); in MutateImpl()
[all …]
H A DFuzzerIO.cpp41 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
52 if (MaxSize) in FileToVector()
53 FileLen = std::min(FileLen, MaxSize); in FileToVector()
102 size_t MaxSize, bool ExitOnError, in ReadDirToVectorOfUnits() argument
114 auto S = FileToVector(X, MaxSize, ExitOnError); in ReadDirToVectorOfUnits()
H A DFuzzerInterface.h54 LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize,
71 LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize);
H A DFuzzerLoop.cpp418 void Fuzzer::RereadOutputCorpus(size_t MaxSize) { in RereadOutputCorpus() argument
425 &EpochOfLastReadOfOutputCorpus, MaxSize, in RereadOutputCorpus()
433 if (U.size() > MaxSize) in RereadOutputCorpus()
434 U.resize(MaxSize); in RereadOutputCorpus()
796 size_t MaxSize = 0; in ReadAndExecuteSeedCorpora() local
800 MaxSize = Max(File.Size, MaxSize); in ReadAndExecuteSeedCorpora()
805 SetMaxInputLen(std::min(std::max(kMinDefaultLen, MaxSize), kMaxSaneLen)); in ReadAndExecuteSeedCorpora()
819 CorporaFiles.size(), MinSize, MaxSize, TotalSize, GetPeakRSSMb()); in ReadAndExecuteSeedCorpora()
939 LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) { in LLVMFuzzerMutate() argument
941 return fuzzer::F->GetMD().DefaultMutate(Data, Size, MaxSize); in LLVMFuzzerMutate()
H A DFuzzerIO.h20 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
36 size_t MaxSize, bool ExitOnError,
/openbsd/gnu/llvm/llvm/lib/Support/
H A DSmallVector.cpp62 static void report_size_overflow(size_t MinSize, size_t MaxSize) { in report_size_overflow() argument
66 std::to_string(MaxSize) + ")"; in report_size_overflow()
76 [[noreturn]] static void report_at_maximum_capacity(size_t MaxSize);
77 static void report_at_maximum_capacity(size_t MaxSize) { in report_at_maximum_capacity() argument
80 std::to_string(MaxSize); in report_at_maximum_capacity()
91 constexpr size_t MaxSize = std::numeric_limits<Size_T>::max(); in getNewCapacity() local
95 if (MinSize > MaxSize) in getNewCapacity()
96 report_size_overflow(MinSize, MaxSize); in getNewCapacity()
102 if (OldCapacity == MaxSize) in getNewCapacity()
103 report_at_maximum_capacity(MaxSize); in getNewCapacity()
[all …]
/openbsd/gnu/llvm/llvm/utils/TableGen/
H A DTypes.cpp18 const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_ATTRIBUTE_UNUSED) { in getMinimalTypeForRange()
23 assert((MaxSize == 32 || MaxSize == 64) && "Unexpected size"); in getMinimalTypeForRange()
24 assert(MaxSize <= 64 && "Unexpected size"); in getMinimalTypeForRange()
25 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange()
/openbsd/gnu/llvm/llvm/include/llvm/FuzzMutate/
H A DIRMutator.h45 virtual uint64_t getWeight(size_t CurrentSize, size_t MaxSize,
73 void mutateModule(Module &M, int Seed, size_t CurSize, size_t MaxSize);
88 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
101 uint64_t getWeight(size_t CurrentSize, size_t MaxSize,
112 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
129 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
144 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
156 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
169 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
192 size_t writeModule(const Module &M, uint8_t *Dest, size_t MaxSize);
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h73 static const uptr MaxSize = (1UL << Config::MaxSizeLog) + Config::SizeDelta; variable
99 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
106 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
190 static const uptr MaxSize = Config::Classes[LargestClassId - 1]; variable
212 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
219 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
365 if (SCMap::MaxSize > (1 << 19)) in validateMap()
367 for (uptr S = 1; S <= SCMap::MaxSize; S++) { in validateMap()
H A Dquarantine.h177 DCHECK_EQ(atomic_load_relaxed(&MaxSize), 0U); in init()
184 atomic_store_relaxed(&MaxSize, Size); in init()
191 uptr getMaxSize() const { return atomic_load_relaxed(&MaxSize); } in getMaxSize()
242 atomic_uptr MaxSize = {}; variable
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/benchmarks/
H A Dmalloc_benchmark.cpp49 static const size_t MaxSize = 128 * 1024; variable
54 ->Range(MinSize, MaxSize);
56 ->Range(MinSize, MaxSize);
59 ->Range(MinSize, MaxSize);
/openbsd/gnu/llvm/llvm/lib/Target/ARC/
H A DARCBranchFinalize.cpp148 unsigned MaxSize = 0; in runOnMachineFunction() local
161 MaxSize += Size; in runOnMachineFunction()
172 isInt<9>(MaxSize) ? replaceWithBRcc(P.first) : replaceWithCmpBcc(P.first); in runOnMachineFunction()
176 << MaxSize << "\n"); in runOnMachineFunction()
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/
H A DMemProfData.inc124 MaxSize = Size;
157 MaxSize = newMIB.MaxSize > MaxSize ? newMIB.MaxSize : MaxSize;
H A DMIBEntryDef.inc35 MIBEntryDef(MaxSize = 7, MaxSize, uint32_t)
/openbsd/gnu/llvm/compiler-rt/include/profile/
H A DMemProfData.inc124 MaxSize = Size;
157 MaxSize = newMIB.MaxSize > MaxSize ? newMIB.MaxSize : MaxSize;
H A DMIBEntryDef.inc35 MIBEntryDef(MaxSize = 7, MaxSize, uint32_t)
/openbsd/gnu/llvm/llvm/tools/llvm-isel-fuzzer/
H A Dllvm-isel-fuzzer.cpp67 uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
76 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()
78 return writeModule(*M, Data, MaxSize); in LLVMFuzzerCustomMutator()
/openbsd/gnu/llvm/llvm/tools/yaml2obj/
H A Dyaml2obj.cpp52 static cl::opt<uint64_t> MaxSize( variable
148 MaxSize == 0 ? UINT64_MAX : MaxSize)) in main()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUIGroupLP.cpp96 std::optional<unsigned> MaxSize; member in __anon3bb752f00111::SchedGroup
146 bool isFull() const { return MaxSize && Collection.size() >= *MaxSize; } in isFull()
178 SchedGroup(SchedGroupMask SGMask, std::optional<unsigned> MaxSize, in SchedGroup() argument
180 : SGMask(SGMask), MaxSize(MaxSize), DAG(DAG), TII(TII) { in SchedGroup()
184 SchedGroup(SchedGroupMask SGMask, std::optional<unsigned> MaxSize, int SyncID, in SchedGroup() argument
186 : SGMask(SGMask), MaxSize(MaxSize), SyncID(SyncID), DAG(DAG), TII(TII) { in SchedGroup()
989 assert(MaxSize); in initSchedGroup()
990 (*MaxSize)++; in initSchedGroup()
/openbsd/gnu/llvm/llvm/lib/ObjectYAML/
H A Dyaml2obj.cpp22 unsigned DocNum, uint64_t MaxSize) { in convertYAML() argument
38 return yaml2elf(*Doc.Elf, Out, ErrHandler, MaxSize); in convertYAML()
/openbsd/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A Dyaml2obj.h68 uint64_t MaxSize);
79 unsigned DocNum = 1, uint64_t MaxSize = UINT64_MAX);
/openbsd/gnu/llvm/llvm/tools/llvm-opt-fuzzer/
H A Dllvm-opt-fuzzer.cpp60 uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
72 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()
88 if (Buf.size() > MaxSize) in LLVMFuzzerCustomMutator()
/openbsd/gnu/llvm/llvm/lib/FuzzMutate/
H A DIRMutator.cpp65 size_t MaxSize) { in mutateModule() argument
74 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight())); in mutateModule()
149 uint64_t InstDeleterIRStrategy::getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
152 if (CurrentSize > MaxSize - 200) in getWeight()
157 (static_cast<int64_t>(MaxSize) - in getWeight()
604 size_t llvm::writeModule(const Module &M, uint8_t *Dest, size_t MaxSize) { in writeModule() argument
610 if (Buf.size() > MaxSize) in writeModule()
/openbsd/gnu/llvm/compiler-rt/lib/xray/
H A Dxray_profile_collector.cpp249 auto MaxSize = profilingFlags()->global_allocator_max; in serialize() local
250 auto ProfileArena = allocateBuffer(MaxSize); in serialize()
255 [&]() XRAY_NEVER_INSTRUMENT { deallocateBuffer(ProfileArena, MaxSize); }); in serialize()
262 [&]() XRAY_NEVER_INSTRUMENT { deallocateBuffer(PathArena, MaxSize); }); in serialize()

123