Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/lib/Sema/
DTypeLocBuilder.cpp44 void TypeLocBuilder::grow(size_t NewCapacity) { in grow() argument
45 assert(NewCapacity > Capacity); in grow()
48 char *NewBuffer = new char[NewCapacity]; in grow()
49 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
58 Capacity = NewCapacity; in grow()
75 size_t NewCapacity = Capacity * 2; in pushImpl() local
76 while (RequiredCapacity > NewCapacity) in pushImpl()
77 NewCapacity *= 2; in pushImpl()
78 grow(NewCapacity); in pushImpl()
DTypeLocBuilder.h130 void grow(size_t NewCapacity);
/external/clang/lib/Sema/
DTypeLocBuilder.cpp45 void TypeLocBuilder::grow(size_t NewCapacity) { in grow() argument
46 assert(NewCapacity > Capacity); in grow()
49 char *NewBuffer = new char[NewCapacity]; in grow()
50 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
59 Capacity = NewCapacity; in grow()
76 size_t NewCapacity = Capacity * 2; in pushImpl() local
77 while (RequiredCapacity > NewCapacity) in pushImpl()
78 NewCapacity *= 2; in pushImpl()
79 grow(NewCapacity); in pushImpl()
DTypeLocBuilder.h133 void grow(size_t NewCapacity);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSmallVector.cpp48 size_t NewCapacity = 2 * capacity() + 1; // Always grow. in grow_pod() local
49 NewCapacity = in grow_pod()
50 std::min(std::max(NewCapacity, MinCapacity), size_t(UINT32_MAX)); in grow_pod()
54 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
60 NewElts = safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
64 this->Capacity = NewCapacity; in grow_pod()
/external/llvm-project/llvm/lib/Support/
DSmallVector.cpp90 size_t NewCapacity = 2 * capacity() + 1; // Always grow. in grow_pod() local
91 NewCapacity = std::min(std::max(NewCapacity, MinSize), SizeTypeMax()); in grow_pod()
95 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
101 NewElts = safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
105 this->Capacity = NewCapacity; in grow_pod()
/external/scudo/standalone/
Dvector.h43 const uptr NewCapacity = roundUpToPowerOfTwo(Size + 1); in push_back() local
44 reallocate(NewCapacity); in push_back()
82 void reallocate(uptr NewCapacity) { in reallocate() argument
83 DCHECK_GT(NewCapacity, 0); in reallocate()
84 DCHECK_LE(Size, NewCapacity); in reallocate()
86 roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dvector.h43 const uptr NewCapacity = roundUpToPowerOfTwo(Size + 1); in push_back() local
44 reallocate(NewCapacity); in push_back()
82 void reallocate(uptr NewCapacity) { in reallocate() argument
83 DCHECK_GT(NewCapacity, 0); in reallocate()
84 DCHECK_LE(Size, NewCapacity); in reallocate()
86 roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
/external/clang/include/clang/Analysis/Support/
DBumpVector.h223 size_t NewCapacity = 2*CurCapacity; in grow() local
224 if (NewCapacity < MinSize) in grow()
225 NewCapacity = MinSize; in grow()
228 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()
246 Capacity = Begin+NewCapacity; in grow()
/external/llvm-project/clang/include/clang/Analysis/Support/
DBumpVector.h228 size_t NewCapacity = 2*CurCapacity; in grow() local
229 if (NewCapacity < MinSize) in grow()
230 NewCapacity = MinSize; in grow()
233 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()
251 Capacity = Begin+NewCapacity; in grow()
/external/clang/include/clang/AST/
DASTVector.h379 size_t NewCapacity = 2*CurCapacity; in grow() local
380 if (NewCapacity < MinSize) in grow()
381 NewCapacity = MinSize; in grow()
384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()
401 Capacity.setPointer(Begin+NewCapacity); in grow()
/external/llvm-project/clang/include/clang/AST/
DASTVector.h383 size_t NewCapacity = 2*CurCapacity; in grow() local
384 if (NewCapacity < MinSize) in grow()
385 NewCapacity = MinSize; in grow()
388 T *NewElts = new (C, alignof(T)) T[NewCapacity]; in grow()
405 Capacity.setPointer(Begin+NewCapacity); in grow()
/external/llvm-project/llvm/include/llvm/ADT/
DBitVector.h708 unsigned NewCapacity = RHSWords; variable
709 assert(NewCapacity > 0 && "negative capacity?");
710 auto NewBits = allocate(NewCapacity);
711 std::memcpy(NewBits.data(), RHS.Bits.data(), NewCapacity * sizeof(BitWord));
872 size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2); in grow() local
873 assert(NewCapacity > 0 && "realloc-ing zero space"); in grow()
875 safe_realloc(Bits.data(), NewCapacity * sizeof(BitWord))); in grow()
876 Bits = MutableArrayRef<BitWord>(NewBits, NewCapacity); in grow()
DSmallVector.h354 size_t NewCapacity = size_t(NextPowerOf2(this->capacity() + 2)); in grow() local
355 NewCapacity = std::min(std::max(NewCapacity, MinSize), this->SizeTypeMax()); in grow()
356 T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T))); in grow()
369 this->Capacity = NewCapacity; in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DBitVector.h731 unsigned NewCapacity = RHSWords; variable
732 assert(NewCapacity > 0 && "negative capacity?");
733 auto NewBits = allocate(NewCapacity);
734 std::memcpy(NewBits.data(), RHS.Bits.data(), NewCapacity * sizeof(BitWord));
885 size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2); in grow() local
886 assert(NewCapacity > 0 && "realloc-ing zero space"); in grow()
888 safe_realloc(Bits.data(), NewCapacity * sizeof(BitWord))); in grow()
889 Bits = MutableArrayRef<BitWord>(NewBits, NewCapacity); in grow()
DSmallVector.h238 size_t NewCapacity = size_t(NextPowerOf2(this->capacity() + 2)); in grow() local
239 NewCapacity = std::min(std::max(NewCapacity, MinSize), size_t(UINT32_MAX)); in grow()
240 T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T))); in grow()
253 this->Capacity = NewCapacity; in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DLazyRandomTypeCollection.cpp164 uint32_t NewCapacity = MinSize * 3 / 2; in ensureCapacityFor() local
166 assert(NewCapacity > capacity()); in ensureCapacityFor()
167 Records.resize(NewCapacity); in ensureCapacityFor()
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DLazyRandomTypeCollection.cpp164 uint32_t NewCapacity = MinSize * 3 / 2; in ensureCapacityFor() local
166 assert(NewCapacity > capacity()); in ensureCapacityFor()
167 Records.resize(NewCapacity); in ensureCapacityFor()
/external/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
DHashTable.h312 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX; in grow() local
317 HashTable NewMap(NewCapacity); in grow()
327 assert(capacity() == NewCapacity); in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/Native/
DHashTable.h312 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX; in grow() local
317 HashTable NewMap(NewCapacity); in grow()
327 assert(capacity() == NewCapacity); in grow()
/external/llvm-project/clang/lib/AST/
DNestedNameSpecifier.cpp468 unsigned NewCapacity = std::max( in Append() local
472 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
477 Buffer = static_cast<char *>(llvm::safe_realloc(Buffer, NewCapacity)); in Append()
479 BufferCapacity = NewCapacity; in Append()
/external/clang/lib/AST/
DNestedNameSpecifier.cpp457 unsigned NewCapacity = std::max( in Append() local
460 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()
466 BufferCapacity = NewCapacity; in Append()
/external/llvm/include/llvm/ADT/
DSmallVector.h234 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local
235 if (NewCapacity < MinSize) in grow()
236 NewCapacity = MinSize; in grow()
237 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
251 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallVector.h237 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local
238 if (NewCapacity < MinSize) in grow()
239 NewCapacity = MinSize; in grow()
240 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
254 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/clang/lib/CodeGen/
DCGCleanup.cpp125 unsigned NewCapacity = CurrentCapacity; in allocate() local
127 NewCapacity *= 2; in allocate()
128 } while (NewCapacity < UsedCapacity + Size); in allocate()
130 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()
131 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()

12