| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SmallVector.cpp | 43 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-14.2/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSymbol.cpp | 39 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new() 41 void *Storage = Ctx.allocate(Size, alignof(NameEntryStorageTy)); in operator new()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/src/ |
| H A D | memory_resource.cpp | 159 const size_t footer_align = alignof(__chunk_footer); in __do_allocate() 235 static_assert(__default_alignment >= alignof(std::max_align_t), ""); in __allocate_in_new_chunk() 236 static_assert(__default_alignment >= alignof(__chunk_footer), ""); in __allocate_in_new_chunk() 237 static_assert(__default_alignment >= alignof(__vacancy_header), ""); in __allocate_in_new_chunk() 240 const size_t footer_align = alignof(__chunk_footer); in __allocate_in_new_chunk() 272 static const size_t __default_alignment = alignof(max_align_t); 280 if (align > alignof(std::max_align_t) || bytes > (size_t(1) << __num_fixed_pools_)) in __pool_index() 337 …__res_->deallocate(__fixed_pools_, __num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool… in release() 357 … (__fixed_pool*)__res_->allocate(__num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool)); in do_allocate() 453 const size_t footer_align = alignof(__chunk_footer); in do_allocate()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__memory_resource/ |
| H A D | polymorphic_allocator.h | 67 … return static_cast<_ValueType*>(__res_->allocate(__n * sizeof(_ValueType), alignof(_ValueType))); in allocate() 75 __res_->deallocate(__p, __n * sizeof(_ValueType), alignof(_ValueType)); in deallocate() 81 allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) { 85 …BI void deallocate_bytes(void* __ptr, size_t __nbytes, size_t __alignment = alignof(max_align_t)) { 93 return static_cast<_Type*>(allocate_bytes(__n * sizeof(_Type), alignof(_Type))); 98 deallocate_bytes(__ptr, __n * sizeof(_Type), alignof(_Type));
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | ItaniumManglingCanonicalizer.cpp | 77 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-14.2/contrib/llvm-project/libcxx/include/__utility/ |
| H A D | small_buffer.h | 45 sizeof(_Decayed) <= _BufferSize && alignof(_Decayed) <= _BufferAlignment; 69 …byte* __allocation = static_cast<byte*>(::operator new[](sizeof(_Stored), align_val_t{alignof(_Sto… in __alloc() 78 …tor delete[](*reinterpret_cast<void**>(__buffer_), sizeof(_Stored), align_val_t{alignof(_Stored)}); in __dealloc()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | StmtCXX.cpp | 29 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 D | ExprCXX.cpp | 260 alignof(CXXNewExpr)); in Create() 274 alignof(CXXNewExpr)); in CreateEmpty() 637 alignof(CXXMemberCallExpr)); in Create() 650 alignof(CXXMemberCallExpr)); in CreateEmpty() 911 alignof(UserDefinedLiteral)); in Create() 1084 alignof(CXXTemporaryObjectExpr)); in Create() 1095 alignof(CXXTemporaryObjectExpr)); in CreateEmpty() 1118 alignof(CXXConstructExpr)); in Create() 1129 alignof(CXXConstructExpr)); in CreateEmpty() 1387 alignof(ExprWithCleanups)); in Create() [all …]
|
| H A D | Stmt.cpp | 388 alignof(CompoundStmt)); in Create() 396 alignof(CompoundStmt)); in CreateEmpty() 967 alignof(IfStmt)); in Create() 977 alignof(IfStmt)); in CreateEmpty() 1087 alignof(SwitchStmt)); in Create() 1095 alignof(SwitchStmt)); in CreateEmpty() 1149 alignof(WhileStmt)); in Create() 1156 alignof(WhileStmt)); in CreateEmpty() 1207 alignof(ReturnStmt)); in Create() 1226 alignof(CaseStmt)); in Create() [all …]
|
| H A D | StmtObjC.cpp | 51 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create() 60 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
|
| H A D | ASTConcept.cpp | 71 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Create() 79 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Rebuild()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 180 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in Allocate() 277 assert(Out % alignof(T) == 0 && "Wrong alignment information"); in identifyKnownAlignedObject() 278 return Out / alignof(T); in identifyKnownAlignedObject() 340 alignof(std::max_align_t)); in StartNewSlab() 357 alignof(std::max_align_t)); in DeallocateSlabs() 366 this->getAllocator().Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs() 444 alignof(std::max_align_t))); in new()
|
| H A D | TrailingObjects.h | 65 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 D | Recycler.h | 33 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)> 84 static_assert(alignof(SubClass) <= Align, in Allocate()
|
| H A D | ArrayRecycler.h | 28 template <class T, size_t Align = alignof(T)> class ArrayRecycler { 35 static_assert(Align >= alignof(FreeList), "Object underaligned");
|
| H A D | AllocatorBase.h | 76 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T))); 83 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T), alignof(T));
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_thread_list.cpp | 16 static ALIGNED(alignof( in InitThreadList() 23 static ALIGNED(alignof( in InitThreadList()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Environment.cpp | 17 Allocator.Allocate(sizeof(char) * size, alignof(char))); in make_entry() 30 Allocator.Allocate(sizeof(char *) * (Env.size() + 1), alignof(char *))); in Envp()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | User.h | 317 static_assert(alignof(Use) >= alignof(User), 319 static_assert(alignof(Use *) >= alignof(User),
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | PrimType.h | 92 return ((Size + alignof(void *) - 1) / alignof(void *)) * alignof(void *);
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_thread.cpp | 38 static ALIGNED(alignof( in InitializeThreads() 43 static ALIGNED(alignof(ThreadArgRetval)) char in InitializeThreads()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Demangle/ |
| H A D | MicrosoftDemangle.h | 77 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in allocArray() 96 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in alloc()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclarationName.h | 187 static_assert(alignof(IdentifierInfo) >= 8 && 188 alignof(detail::DeclarationNameExtra) >= 8 && 189 alignof(detail::CXXSpecialNameExtra) >= 8 && 190 alignof(detail::CXXOperatorIdName) >= 8 && 191 alignof(detail::CXXDeductionGuideNameExtra) >= 8 && 192 alignof(detail::CXXLiteralOperatorIdName) >= 8,
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | FunctionExtras.h | 164 mutable std::aligned_storage_t<InlineStorageSize, alignof(void *)> 266 alignof(CallableT) > alignof(decltype(StorageUnion.InlineStorage))) { 271 auto Alignment = alignof(CallableT);
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__coroutine/ |
| H A D | coroutine_handle.h | 106 …__builtin_coro_promise(std::addressof(const_cast<_RawPromise&>(__promise)), alignof(_Promise), tru… 153 … return *static_cast<_Promise*>(__builtin_coro_promise(this->__handle_, alignof(_Promise), false));
|