Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/compiler-rt/lib/fuzzer/tests/
H A DFuzzerUnittest.cpp97 C.resize(NewSize); in TEST()
188 size_t NewSize = (*MD.*M)(T, 7, 8); in TestInsertByte() local
228 size_t NewSize = (*MD.*M)(T, 4, 8); in TestInsertRepeatedBytes() local
269 size_t NewSize = (*MD.*M)(T, 8, 9); in TestChangeByte() local
305 size_t NewSize = (*MD.*M)(T, 8, 9); in TestChangeBit() local
338 size_t NewSize = (*MD.*M)(T, 7, 7); in TestShuffleBytes() local
369 size_t NewSize = (*MD.*M)(T, 7, 7); in TestCopyPart() local
385 size_t NewSize = (*MD.*M)(T, 5, 8); in TestCopyPart() local
414 ASSERT_EQ(NewSize, MaxSize); in TEST()
438 size_t NewSize = (*MD.*M)(T, 3, 7); in TestAddWordFromDictionary() local
[all …]
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dvector.h60 void reserve(uptr NewSize) { in reserve() argument
62 if (NewSize > capacity()) in reserve()
63 reallocate(NewSize); in reserve()
65 void resize(uptr NewSize) { in resize() argument
66 if (NewSize > Size) { in resize()
67 reserve(NewSize); in resize()
68 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size)); in resize()
70 Size = NewSize; in resize()
H A Dcombined.h576 if (UNLIKELY(NewSize >= MaxAllowedMallocSize)) {
579 reportAllocationSizeTooBig(NewSize, 0, MaxAllowedMallocSize);
584 DCHECK_NE(NewSize, 0);
591 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
639 if (reinterpret_cast<uptr>(OldTaggedPtr) + NewSize <= BlockEnd) {
640 if (NewSize > OldSize || (OldSize - NewSize) < getPageSizeCached()) {
643 (ClassId ? NewSize
652 NewSize, untagPointer(BlockEnd));
668 memcpy(NewPtr, OldTaggedPtr, Min(NewSize, OldSize));
1192 void resizeTaggedChunk(uptr OldPtr, uptr NewPtr, uptr NewSize, in resizeTaggedChunk() argument
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DStringMap.cpp207 unsigned NewSize; in RehashTable() local
212 NewSize = NumBuckets * 2; in RehashTable()
215 NewSize = NumBuckets; in RehashTable()
221 auto **NewTableArray = createTable(NewSize); in RehashTable()
222 unsigned *NewHashArray = getHashTable(NewTableArray, NewSize); in RehashTable()
232 unsigned NewBucket = FullHash & (NewSize - 1); in RehashTable()
236 NewBucket = (NewBucket + ProbeSize++) & (NewSize - 1); in RehashTable()
251 NumBuckets = NewSize; in RehashTable()
H A DIntervalMap.cpp121 const unsigned *CurSize, unsigned NewSize[], in distribute() argument
134 Sum += NewSize[n] = PerNode + (n < Extra); in distribute()
136 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); in distribute()
143 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); in distribute()
144 --NewSize[PosPair.first]; in distribute()
150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute()
151 Sum += NewSize[n]; in distribute()
H A DSmallPtrSet.cpp94 void SmallPtrSetImplBase::Grow(unsigned NewSize) { in Grow() argument
100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
104 CurArraySize = NewSize; in Grow()
105 memset(CurArray, -1, NewSize*sizeof(void*)); in Grow()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp102 if (!NewSize) in Mutate_CustomCrossOver()
105 memcpy(Data, U.data(), NewSize); in Mutate_CustomCrossOver()
106 return NewSize; in Mutate_CustomCrossOver()
447 size_t NewSize = 0; in Mutate_CrossOver() local
457 if (!NewSize) in Mutate_CrossOver()
467 return NewSize; in Mutate_CrossOver()
551 if (NewSize && NewSize <= MaxSize) { in MutateImpl()
553 ToASCII(Data, NewSize); in MutateImpl()
555 return NewSize; in MutateImpl()
582 assert(NewSize <= OneBits); in MutateWithMask()
[all …]
H A DFuzzerLoop.cpp742 size_t NewSize = 0; in MutateAndTestOne() local
745 NewSize = MD.MutateWithMask(CurrentUnitData, Size, Size, in MutateAndTestOne()
749 if (!NewSize) in MutateAndTestOne()
750 NewSize = MD.Mutate(CurrentUnitData, Size, CurrentMaxMutationLen); in MutateAndTestOne()
751 assert(NewSize > 0 && "Mutator returned empty unit"); in MutateAndTestOne()
753 Size = NewSize; in MutateAndTestOne()
919 size_t NewSize = MD.Mutate(CurrentUnitData, U.size(), MaxMutationLen); in MinimizeCrashLoop() local
920 assert(NewSize > 0 && NewSize <= MaxMutationLen); in MinimizeCrashLoop()
921 ExecuteCallback(CurrentUnitData, NewSize); in MinimizeCrashLoop()
922 PrintPulseAndReportSlowInput(CurrentUnitData, NewSize); in MinimizeCrashLoop()
[all …]
H A DFuzzerCorpus.h415 bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) { in AddFeature() argument
416 assert(NewSize); in AddFeature()
419 if (OldSize == 0 || (Shrink && OldSize > NewSize)) { in AddFeature()
434 Printf("ADD FEATURE %zd sz %d\n", Idx, NewSize); in AddFeature()
437 InputSizesPerFeature[Idx] = NewSize; in AddFeature()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DIndexedMap.h69 unsigned NewSize = toIndex_(n) + 1; in grow() local
70 if (NewSize > storage_.size()) in grow()
71 resize(NewSize); in grow()
H A DIntervalMap.h344 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes()
352 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes()
362 if (CurSize[n] == NewSize[n]) in adjustSiblingSizes()
370 if (CurSize[n] >= NewSize[n]) in adjustSiblingSizes()
1913 unsigned NewSize = P.leafSize() - 1; in treeErase() local
1914 P.setSize(IM.height, NewSize); in treeErase()
1916 if (P.leafOffset() == NewSize) { in treeErase()
1954 P.setSize(Level, NewSize); in eraseNode()
1956 if (P.offset(Level) == NewSize) { in eraseNode()
2018 unsigned NewSize[4]; in overflow() local
[all …]
H A DSmallVector.h156 bool isSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in isSafeToReferenceAfterResize() argument
162 if (NewSize <= this->size()) in isSafeToReferenceAfterResize()
163 return Elt < this->begin() + NewSize; in isSafeToReferenceAfterResize()
166 return NewSize <= this->capacity(); in isSafeToReferenceAfterResize()
170 void assertSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in assertSafeToReferenceAfterResize() argument
171 assert(isSafeToReferenceAfterResize(Elt, NewSize) && in assertSafeToReferenceAfterResize()
213 size_t NewSize = This->size() + N; in reserveForParamAndGetAddressImpl() local
214 if (LLVM_LIKELY(NewSize <= This->capacity())) in reserveForParamAndGetAddressImpl()
225 This->grow(NewSize); in reserveForParamAndGetAddressImpl()
H A DBitVector.h461 unsigned NewSize = Size + 1; in push_back() local
465 if (NewSize > getBitCapacity()) in push_back()
466 resize(NewSize, false); in push_back()
468 Size = NewSize; in push_back()
/llvm-project-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp495 void *reallocate(void *OldPtr, uptr NewSize) { in reallocate()
501 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
503 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize); in reallocate()
525 if (NewSize <= UsableSize && in reallocate()
526 (UsableSize - NewSize) < (SizeClassMap::kMaxSize / 2)) { in reallocate()
529 OldHeader.ClassId ? NewSize : UsableSize - NewSize; in reallocate()
535 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
539 memcpy(NewPtr, OldPtr, Min(NewSize, UsableSize)); in reallocate()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopPass.cpp207 unsigned NewSize = F.getInstructionCount(); in runOnFunction() local
210 if (NewSize != FunctionSize) { in runOnFunction()
211 int64_t Delta = static_cast<int64_t>(NewSize) - in runOnFunction()
216 FunctionSize = NewSize; in runOnFunction()
H A DTypeBasedAliasAnalysis.cpp776 uint64_t NewSize = InnerSize->getZExtValue(); in shiftTBAAStruct() local
780 NewSize -= Offset - InnerOffset->getZExtValue(); in shiftTBAAStruct()
787 ConstantInt::get(InnerSize->getType(), NewSize))); in shiftTBAAStruct()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DTpiStreamBuilder.cpp44 size_t NewSize = TypeRecordBytes + Size; in updateTypeIndexOffsets() local
46 if (NewSize / EightKB > TypeRecordBytes / EightKB || TypeRecordCount == 0) { in updateTypeIndexOffsets()
53 TypeRecordBytes = NewSize; in updateTypeIndexOffsets()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DAliasSetTracker.h75 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { in updateSizeAndAAInfo() argument
77 if (NewSize != Size) { in updateSizeAndAAInfo()
79 Size = isSizeSet() ? Size.unionWith(NewSize) : NewSize; in updateSizeAndAAInfo()
H A DMemoryLocation.h300 MemoryLocation getWithNewSize(LocationSize NewSize) const { in getWithNewSize() argument
302 Copy.Size = NewSize; in getWithNewSize()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DHFSort.cpp91 uint32_t NewSize = TotalSize + C.size(); in freezeClusters() local
92 if (NewSize > FrozenPages * HugePageSize) in freezeClusters()
95 TotalSize = NewSize; in freezeClusters()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp67 unsigned NewSize = Storage.size() - 1; in remove_min() local
68 if (NewSize) { in remove_min()
71 Storage[0] = Storage[NewSize]; in remove_min()
73 std::swap(Storage[0], Storage[NewSize]); in remove_min()
83 if (R >= NewSize) { in remove_min()
85 if (L >= NewSize) break; in remove_min()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DOnDiskHashTable.h97 void resize(size_t NewSize) { in resize() argument
99 safe_calloc(NewSize, sizeof(Bucket))); in resize()
105 insert(NewBuckets, NewSize, E); in resize()
110 NumBuckets = NewSize; in resize()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinarySection.h129 void update(uint8_t *NewData, uint64_t NewSize, unsigned NewAlignment, in update() argument
135 OutputSize = NewSize; in update()
137 NewData ? NewSize : 0); in update()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp305 CharUnits NewSize = NewOffset.alignTo(RL.getAlignment()); in calculateOptimalPad() local
306 NewPad += NewSize - NewOffset; in calculateOptimalPad()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineCombiner.cpp92 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize);
485 bool MachineCombiner::doSubstitute(unsigned NewSize, unsigned OldSize, in doSubstitute() argument
487 if (OptForSize && (NewSize < OldSize)) in doSubstitute()

123