Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/compiler-rt/test/profile/Inputs/
H A Dinstrprof-merge-match.c20 extern uint64_t libEntry(char *Buffer, uint64_t MaxSize);
23 const uint64_t MaxSize = 10000; in main() local
24 static char ALIGNED(sizeof(uint64_t)) Buffer[MaxSize]; in main()
27 if (Size > MaxSize) in main()
41 memset(Buffer, 0, MaxSize); in main()
44 Size = libEntry(Buffer, MaxSize); in main()
H A Dinstrprof-merge-match-lib.c20 uint64_t libEntry(char *Buffer, uint64_t MaxSize) { in libEntry() argument
23 if (Size > MaxSize) in libEntry()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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
100 uint64_t getWeight(size_t CurrentSize, size_t MaxSize,
110 uint64_t getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
134 size_t writeModule(const Module &M, uint8_t *Dest, size_t MaxSize);
/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A DReloadTest.cpp13 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
15 std::generate(Data, Data + MaxSize, std::rand); in LLVMFuzzerCustomMutator()
16 return MaxSize; in LLVMFuzzerCustomMutator()
H A DCustomMutatorWithLongSequencesTest.cpp34 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
37 LLVMFuzzerMutate(Data, Size, MaxSize); in LLVMFuzzerCustomMutator()
39 return LLVMFuzzerMutate(Data, Size, MaxSize); in LLVMFuzzerCustomMutator()
H A DCompressedTest.cpp31 LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize);
39 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
42 size_t CompressedLen = MaxSize; in LLVMFuzzerCustomMutator()
H A DCustomMutatorTest.cpp33 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
39 return LLVMFuzzerMutate(Data, Size, MaxSize); in LLVMFuzzerCustomMutator()
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dinstrprof-without-libc.c31 const uint64_t MaxSize = 10000; in main() local
32 static char Buffer[MaxSize]; in main()
35 if (Size > MaxSize) in main()
H A Dinstrprof-merge.c44 const uint64_t MaxSize = 10000; in main() local
45 static ALIGNED(sizeof(uint64_t)) char Buffer[MaxSize]; in main()
48 if (Size > MaxSize) in main()
H A Dinstrprof-merge-entry-cover.c46 const uint64_t MaxSize = 10000; in main() local
47 static ALIGNED(sizeof(uint64_t)) char Buffer[MaxSize]; in main()
50 if (Size > MaxSize) in main()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h70 static const uptr MaxSize = (1UL << Config::MaxSizeLog) + Config::SizeDelta; variable
96 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
103 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
187 static const uptr MaxSize = Config::Classes[LargestClassId - 1]; variable
209 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
216 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
362 if (SCMap::MaxSize > (1 << 19)) in validateMap()
364 for (uptr S = 1; S <= SCMap::MaxSize; S++) { in validateMap()
/llvm-project-15.0.7/openmp/libomptarget/plugins/remote/server/
H A DServer.h48 uint64_t MaxSize; variable
53 RemoteOffloadImpl(uint64_t MaxSize, uint64_t BlockSize) in RemoteOffloadImpl() argument
54 : MaxSize(MaxSize), BlockSize(BlockSize) { in RemoteOffloadImpl()
/llvm-project-15.0.7/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);
/llvm-project-15.0.7/openmp/libomptarget/plugins/remote/src/
H A DClient.h35 const uint64_t MaxSize; variable
52 uint64_t MaxSize, int64_t BlockSize) in RemoteOffloadClient() argument
53 : Timeout(Timeout), MaxSize(MaxSize), BlockSize(BlockSize), in RemoteOffloadClient()
118 Config.Timeout, Config.MaxSize, Config.BlockSize)); in RemoteClientManager()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DThrowByValueCatchByReferenceCheck.cpp28 MaxSize(MaxSizeOptions) {} in ThrowByValueCatchByReferenceCheck()
165 if (MaxSize == std::numeric_limits<uint64_t>::max()) in diagnoseCatchLocations()
166 MaxSize = Context.getTypeSize(Context.getSizeType()); in diagnoseCatchLocations()
167 if (Context.getTypeSize(CaughtType) > MaxSize) in diagnoseCatchLocations()
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DIRMutator.cpp60 size_t MaxSize) { in mutateModule() argument
69 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight())); in mutateModule()
144 uint64_t InstDeleterIRStrategy::getWeight(size_t CurrentSize, size_t MaxSize, in getWeight() argument
147 if (CurrentSize > MaxSize - 200) in getWeight()
152 (static_cast<int64_t>(MaxSize) - in getWeight()
272 size_t llvm::writeModule(const Module &M, uint8_t *Dest, size_t MaxSize) { in writeModule() argument
278 if (Buf.size() > MaxSize) in writeModule()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/compiler-rt/include/profile/
H A DMemProfData.inc124 MaxSize = Size;
144 MaxSize = newMIB.MaxSize < MaxSize ? newMIB.MaxSize : MaxSize;
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DMemProfData.inc124 MaxSize = Size;
144 MaxSize = newMIB.MaxSize < MaxSize ? newMIB.MaxSize : MaxSize;
/llvm-project-15.0.7/openmp/libomptarget/plugins/remote/include/
H A DUtils.h52 uint64_t MaxSize; member
57 : ServerAddresses({"0.0.0.0:50051"}), MaxSize(1 << 30), in ClientManagerConfigTy()
75 MaxSize = std::stoi(Env);

1234