Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 – 25 of 654) sorted by relevance

12345678910>>...27

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DAllocatorBase.h37 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function
40 &AllocatorBase::Allocate) != in Allocate()
42 &DerivedT::Allocate), in Allocate()
46 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
68 template <typename T> T *Allocate(size_t Num = 1) {
69 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
84 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, size_t Alignment) { in Allocate() function
89 using AllocatorBase<MallocAllocator>::Allocate;
H A DRecyclingAllocator.h43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function
45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function
66 return Allocator.Allocate(); in new()
H A DAllocator.h145 Allocate(size_t Size, Align Alignment) { in Allocate() function
175 AllocatorT::Allocate(PaddedSize, alignof(std::max_align_t)); in Allocate()
202 Allocate(size_t Size, size_t Alignment) { in Allocate() function
204 return Allocate(Size, Align(Alignment)); in Allocate()
208 using AllocatorBase<BumpPtrAllocatorImpl>::Allocate;
335 AllocatorT::Allocate(AllocatedSlabSize, alignof(std::max_align_t)); in StartNewSlab()
426 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
437 return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size), in new()
H A DRecycler.h83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() function
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
93 T *Allocate(AllocatorType &Allocator) { in Allocate() function
94 return Allocate<T>(Allocator); in Allocate()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/
H A Dallocator_test.cc28 TEST(AllocatorTest, Allocate) { in TEST() argument
30 auto B = A.Allocate(); in TEST()
36 auto B1 = A.Allocate(); in TEST()
38 auto B2 = A.Allocate(); in TEST()
54 for (auto B = A.Allocate(); B.Data != nullptr; B = A.Allocate(), ++C) in TEST()
73 for (auto B = A.Allocate(); B.Data != nullptr; B = A.Allocate(), ++C) in TEST()
/netbsd-src/external/apache2/llvm/dist/libcxx/benchmarks/
H A Dallocation.bench.cpp21 static void* Allocate(size_t N) { in Allocate() function
32 static void* Allocate(size_t N) { in Allocate() function
43 static void* Allocate(size_t N) { in Allocate() function
54 static void* Allocate(size_t N) { in Allocate() function
68 void* p = AllocWrapper::Allocate(alloc_size); in BM_AllocateAndDeallocate()
81 PointerList* p = (PointerList*)AllocWrapper::Allocate(alloc_size); in BM_AllocateOnly()
103 p = AllocWrapper::Allocate(alloc_size); in BM_DeallocateOnly()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DOpenMPClause.cpp328 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create()
340 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty()
385 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), in Create()
400 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), in CreateEmpty()
418 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create()
428 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty()
449 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); in Create()
461 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); in CreateEmpty()
499 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create()
513 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty()
[all …]
H A DExprCXX.cpp256 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in Create()
270 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in CreateEmpty()
376 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create()
394 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create()
407 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in CreateEmpty()
486 void *Mem = Context.Allocate(Size); in Create()
499 void *Mem = Context.Allocate(Size); in CreateEmpty()
566 void *Mem = Ctx.Allocate(sizeof(CXXOperatorCallExpr) + SizeOfTrailingObjects, in Create()
579 void *Mem = Ctx.Allocate(sizeof(CXXOperatorCallExpr) + SizeOfTrailingObjects, in CreateEmpty()
631 void *Mem = Ctx.Allocate(sizeof(CXXMemberCallExpr) + SizeOfTrailingObjects, in Create()
[all …]
H A DStmtCXX.cpp28 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create()
35 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create()
91 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create()
100 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create()
118 SubStmts[CoroutineBodyStmt::Allocate] = Args.Allocate; in CoroutineBodyStmt()
H A DExprConcepts.cpp81 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
120 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
130 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
200 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create()
211 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/lsan/
H A Dlsan_allocator.cc79 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() function
85 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
108 return Allocate(stack, size, 1, true); in Calloc()
148 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
164 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
174 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()
178 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc()
195 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc()
208 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/lsan/
H A Dlsan_allocator.cc82 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() function
88 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
111 return Allocate(stack, size, 1, true); in Calloc()
151 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
167 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
177 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()
181 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc()
198 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc()
211 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/
H A Dlsan_allocator.cpp85 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() function
91 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
114 return Allocate(stack, size, 1, true); in Calloc()
158 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
174 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
184 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()
188 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc()
216 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc()
229 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_test.cc219 char *x = (char*)cache.Allocate(a, class_id0); in TestSizeClassAllocator()
330 void *x = cache.Allocate(a, 1 + i % (Allocator::kNumClasses - 1)); in SizeClassAllocatorMetadataStress()
384 void *x = cache.Allocate(a, max_size_class); in SizeClassAllocatorGetBlockBeginStress()
512 void *x = a.Allocate(&stats, 1 << 20, 1); in TEST()
556 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
571 char *x = (char *)a.Allocate(&stats, size, 1); in TEST()
602 char *p = allocated[i] = (char *)a.Allocate(&stats, size, alignment); in TEST()
616 char *p = (char *)a.Allocate(&stats, page_size, 1); in TEST()
637 EXPECT_EQ(a->Allocate(&cache, -1, 1), (void*)0); in TestCombinedAllocator()
638 EXPECT_EQ(a->Allocate(&cache, -1, 1024), (void*)0); in TestCombinedAllocator()
[all …]
H A Dsanitizer_allocator_testlib.cc107 void *p = allocator.Allocate(&cache, size, 8); in malloc()
123 void *p = allocator.Allocate(&cache, size, 8, false); in calloc()
146 void *p = allocator.Allocate(&cache, size, alignment); in memalign()
155 *memptr = allocator.Allocate(&cache, size, alignment); in posix_memalign()
165 void *p = allocator.Allocate(&cache, size, GetPageSizeCached()); in valloc()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator_combined.h44 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate() function
69 res = cache->Allocate(&primary_, primary_.ClassID(size)); in Allocate()
71 res = secondary_.Allocate(&stats_, original_size, alignment); in Allocate()
100 return Allocate(cache, new_size, alignment); in Reallocate()
108 void *new_p = Allocate(cache, new_size, alignment); in Reallocate()
H A Dsanitizer_allocator_dlsym.h34 static void *Allocate(uptr size_in_bytes) { in Allocate() function
58 return Allocate(new_size); in Realloc()
66 void *new_ptr = Allocate(new_size); in Realloc()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator_combined.h37 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate() function
62 res = cache->Allocate(&primary_, primary_.ClassID(size)); in Allocate()
64 res = secondary_.Allocate(&stats_, original_size, alignment); in Allocate()
93 return Allocate(cache, new_size, alignment); in Reallocate()
101 void *new_p = Allocate(cache, new_size, alignment); in Reallocate()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_allocator_combined.h48 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate() function
73 res = cache->Allocate(&primary_, primary_.ClassID(size)); in Allocate()
75 res = secondary_.Allocate(&stats_, original_size, alignment); in Allocate()
104 return Allocate(cache, new_size, alignment); in Reallocate()
112 void *new_p = Allocate(cache, new_size, alignment); in Reallocate()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DSymbolManager.cpp163 SD = (SymExpr*) BPAlloc.Allocate<SymbolRegionValue>(); in getRegionValueSymbol()
182 SD = (SymExpr*) BPAlloc.Allocate<SymbolConjured>(); in conjureSymbol()
199 SD = (SymExpr*) BPAlloc.Allocate<SymbolDerived>(); in getDerivedSymbol()
215 SD = (SymExpr*) BPAlloc.Allocate<SymbolExtent>(); in getExtentSymbol()
233 SD = (SymExpr*) BPAlloc.Allocate<SymbolMetadata>(); in getMetadataSymbol()
250 data = (SymbolCast*) BPAlloc.Allocate<SymbolCast>(); in getCastSymbol()
268 data = (SymIntExpr*) BPAlloc.Allocate<SymIntExpr>(); in getSymIntExpr()
286 data = (IntSymExpr*) BPAlloc.Allocate<IntSymExpr>(); in getIntSymExpr()
304 data = (SymSymExpr*) BPAlloc.Allocate<SymSymExpr>(); in getSymSymExpr()
H A DBasicValueFactory.cpp100 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>(); in getValue()
135 D = (CompoundValData*) BPAlloc.Allocate<CompoundValData>(); in getCompoundValData()
154 D = (LazyCompoundValData*) BPAlloc.Allocate<LazyCompoundValData>(); in getLazyCompoundValData()
172 D = (PointerToMemberData *)BPAlloc.Allocate<PointerToMemberData>(); in getPointerToMemberData()
361 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>(); in getPersistentSValWithData()
386 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>(); in getPersistentSValPair()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
H A Dasan_fake_stack_test.cc106 TEST(FakeStack, Allocate) { in TEST() argument
116 FakeFrame *ff = fs->Allocate(stack_size_log, cid, 0); in TEST()
125 EXPECT_EQ(0UL, fs->Allocate(stack_size_log, cid, 0)); in TEST()
137 FakeFrame *ff = fs->Allocate(fs->stack_size_log(), class_id, 0); in RecursiveFunction()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_allocator.cpp225 void *Allocate(uptr size) { in Allocate() function
226 void *res = get_allocator().Allocate(cache_, size, 1); in Allocate()
483 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate() function
536 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
540 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
726 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate()
747 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc()
964 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc()
984 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc()
998 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true)); in asan_valloc()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_allocator.cc168 void *Allocate(uptr size) { in Allocate() function
169 void *res = get_allocator().Allocate(cache_, size, 1); in Allocate()
399 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate() function
453 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
457 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
661 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate()
682 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc()
876 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc()
885 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc()
899 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true)); in asan_valloc()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_allocator.cc166 void *Allocate(uptr size) { in Allocate() function
167 void *res = get_allocator().Allocate(cache_, size, 1); in Allocate()
397 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate() function
451 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
455 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
659 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate()
680 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc()
874 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc()
883 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc()
897 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true)); in asan_valloc()
[all …]

12345678910>>...27