Home
last modified time | relevance | path

Searched refs:alignof (Results 1 – 25 of 167) sorted by relevance

1234567

/freebsd/contrib/llvm-project/libc/src/__support/
H A Dblock.h167 LIBC_ASSERT(reinterpret_cast<uintptr_t>(s) % alignof(max_align_t) == 0 && in usable_space()
173 LIBC_ASSERT(reinterpret_cast<uintptr_t>(s) % alignof(max_align_t) == 0 && in usable_space()
191 size_t usable_space_alignment = alignof(max_align_t));
235 outer_size % (is_last ? alignof(Block) : alignof(max_align_t)) == 0 && in Block()
237 LIBC_ASSERT(is_usable_space_aligned(alignof(max_align_t)) && in Block()
253 LIBC_ASSERT(alignment >= alignof(max_align_t) && in min_size_for_allocation()
254 alignment % alignof(max_align_t) == 0 && in min_size_for_allocation()
257 if (alignment == alignof(max_align_t)) in min_size_for_allocation()
282 if (add_overflow(size, alignment - alignof(Block), size)) in min_size_for_allocation()
314 uintptr_t ptr, size_t usable_space_alignment = alignof(max_align_t)) {
[all …]
H A Dfreestore.h44 align_up(sizeof(Block) + sizeof(FreeList::Node), alignof(max_align_t));
46 align_up(sizeof(Block) + sizeof(FreeTrie::Node), alignof(max_align_t));
48 (MIN_LARGE_OUTER_SIZE - MIN_OUTER_SIZE) / alignof(max_align_t);
102 alignof(max_align_t)]; in small_list()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSmallVector.cpp43 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
45 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
47 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
49 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSymbol.cpp38 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new()
40 void *Storage = Ctx.allocate(Size, alignof(NameEntryStorageTy)); in operator new()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclAccessPair.h36 uint64_t, llvm::endianness::native, alignof(void *)>
82 static_assert(alignof(DeclAccessPair) == alignof(void *));
/freebsd/contrib/llvm-project/libcxx/src/
H A Dmemory_resource.cpp162 const size_t footer_align = alignof(__chunk_footer); in __do_allocate()
238 static_assert(__default_alignment >= alignof(std::max_align_t), ""); in __allocate_in_new_chunk()
239 static_assert(__default_alignment >= alignof(__chunk_footer), ""); in __allocate_in_new_chunk()
240 static_assert(__default_alignment >= alignof(__vacancy_header), ""); in __allocate_in_new_chunk()
243 const size_t footer_align = alignof(__chunk_footer); in __allocate_in_new_chunk()
275 static const size_t __default_alignment = alignof(max_align_t);
283 if (align > alignof(std::max_align_t) || bytes > (size_t(1) << __num_fixed_pools_)) in __pool_index()
340 …__res_->deallocate(__fixed_pools_, __num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool… in release()
360 … (__fixed_pool*)__res_->allocate(__num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool)); in do_allocate()
455 const size_t footer_align = alignof(__chunk_footer); in do_allocate()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DItaniumManglingCanonicalizer.cpp77 class alignas(alignof(Node *)) NodeHeader : public llvm::FoldingSetNode {
100 return {new (RawAlloc.Allocate(sizeof(T), alignof(T))) in getOrCreateNode()
115 static_assert(alignof(T) <= alignof(NodeHeader), in getOrCreateNode()
118 RawAlloc.Allocate(sizeof(NodeHeader) + sizeof(T), alignof(NodeHeader)); in getOrCreateNode()
131 return RawAlloc.Allocate(sizeof(Node *) * sz, alignof(Node *)); in allocateNodeArray()
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dpolymorphic_allocator.h69 … return static_cast<_ValueType*>(__res_->allocate(__n * sizeof(_ValueType), alignof(_ValueType))); in allocate()
77 __res_->deallocate(__p, __n * sizeof(_ValueType), alignof(_ValueType)); in deallocate()
83 allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) {
87 …BI void deallocate_bytes(void* __ptr, size_t __nbytes, size_t __alignment = alignof(max_align_t)) {
95 return static_cast<_Type*>(allocate_bytes(__n * sizeof(_Type), alignof(_Type)));
100 deallocate_bytes(__ptr, __n * sizeof(_Type), alignof(_Type));
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignOf.h25 static constexpr std::size_t Align = std::max({alignof(T), alignof(Ts)...});
H A DAllocator.h188 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in AllocateSlow()
285 assert(Out % alignof(T) == 0 && "Wrong alignment information"); in identifyKnownAlignedObject()
286 return Out / alignof(T); in identifyKnownAlignedObject()
348 alignof(std::max_align_t)); in StartNewSlab()
365 alignof(std::max_align_t)); in DeallocateSlabs()
374 this->getAllocator().Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs()
459 alignof(std::max_align_t))); in new()
H A DTrailingObjects.h65 FirstAlignment = alignof(First),
77 enum { Alignment = alignof(First) };
124 static const bool value = alignof(PrevTy) < alignof(NextTy);
180 (requiresRealignment() ? llvm::alignTo<alignof(NextTy)>(SizeSoFar) in additionalSizeToAllocImpl()
H A DArrayRecycler.h28 template <class T, size_t Align = alignof(T)> class ArrayRecycler {
35 static_assert(Align >= alignof(FreeList), "Object underaligned");
H A DRecycler.h35 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)>
90 static_assert(alignof(SubClass) <= Align, in Allocate()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp29 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create()
36 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create()
92 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create()
101 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create()
H A DExprCXX.cpp308 alignof(CXXNewExpr)); in Create()
321 alignof(CXXNewExpr)); in CreateEmpty()
428 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create()
449 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create()
462 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in CreateEmpty()
624 alignof(CXXOperatorCallExpr)); in Create()
639 alignof(CXXOperatorCallExpr)); in CreateEmpty()
692 alignof(CXXMemberCallExpr)); in Create()
706 alignof(CXXMemberCallExpr)); in CreateEmpty()
967 alignof(UserDefinedLiteral)); in Create()
[all …]
H A DOpenACCClause.cpp65 C.Allocate(sizeof(OpenACCDefaultClause), alignof(OpenACCDefaultClause)); in Create()
75 void *Mem = C.Allocate(sizeof(OpenACCIfClause), alignof(OpenACCIfClause)); in Create()
177 alignof(OpenACCNumWorkersClause)); in Create()
198 C.Allocate(sizeof(OpenACCCollapseClause), alignof(OpenACCCollapseClause)); in Create()
219 alignof(OpenACCVectorLengthClause)); in Create()
240 C.Allocate(sizeof(OpenACCAsyncClause), alignof(OpenACCAsyncClause)); in Create()
260 C.Allocate(sizeof(OpenACCDeviceNumClause), alignof(OpenACCDeviceNumClause)); in Create()
280 alignof(OpenACCDefaultAsyncClause)); in Create()
566 C.Allocate(sizeof(OpenACCWorkerClause), alignof(OpenACCWorkerClause)); in Create()
586 C.Allocate(sizeof(OpenACCVectorClause), alignof(OpenACCVectorClause)); in Create()
[all …]
H A DStmt.cpp396 alignof(CompoundStmt)); in Create()
404 alignof(CompoundStmt)); in CreateEmpty()
437 alignof(AttributedStmt)); in Create()
445 alignof(AttributedStmt)); in CreateEmpty()
1012 alignof(IfStmt)); in Create()
1022 alignof(IfStmt)); in CreateEmpty()
1132 alignof(SwitchStmt)); in Create()
1140 alignof(SwitchStmt)); in CreateEmpty()
1194 alignof(WhileStmt)); in Create()
1201 alignof(WhileStmt)); in CreateEmpty()
[all …]
H A DStmtObjC.cpp51 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create()
60 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/
H A Dtable.h105 size_t left_align = alignof(HashTable) > alignof(ENTRY) ? alignof(HashTable) in table_alignment()
106 : alignof(ENTRY); in table_alignment()
107 return left_align > alignof(Group) ? left_align : alignof(Group); in table_alignment()
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_thread_list.cpp17 alignas(alignof(HwasanThreadList)) static char in InitThreadList()
24 alignas(alignof(ThreadArgRetval)) static char in InitThreadList()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DEnvironment.cpp17 Allocator.Allocate(sizeof(char) * size, alignof(char))); in make_entry()
30 Allocator.Allocate(sizeof(char *) * (Env.size() + 1), alignof(char *))); in Envp()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h367 static_assert(alignof(Use) >= alignof(User),
369 static_assert(alignof(Use *) >= alignof(User),
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_thread.cpp39 alignas(alignof(ThreadRegistry)) static char in InitializeThreads()
44 alignas(alignof(ThreadArgRetval)) static char in InitializeThreads()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DPrimType.h140 return ((Size + alignof(void *) - 1) / alignof(void *)) * alignof(void *);
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h82 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in allocArray()
101 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in alloc()

1234567