Home
last modified time | relevance | path

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

123456

/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCSymbol.cpp39 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 Dmemory_resource.cpp159 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 Dpolymorphic_allocator.h67 … 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 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-14.2/contrib/llvm-project/libcxx/include/__utility/
H A Dsmall_buffer.h45 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 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.cpp260 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 DStmt.cpp388 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 DStmtObjC.cpp51 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create()
60 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
H A DASTConcept.cpp71 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 DAllocator.h180 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 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 DRecycler.h33 template <class T, size_t Size = sizeof(T), size_t Align = alignof(T)>
84 static_assert(alignof(SubClass) <= Align, in Allocate()
H A DArrayRecycler.h28 template <class T, size_t Align = alignof(T)> class ArrayRecycler {
35 static_assert(Align >= alignof(FreeList), "Object underaligned");
H A DAllocatorBase.h76 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 Dhwasan_thread_list.cpp16 static ALIGNED(alignof( in InitThreadList()
23 static ALIGNED(alignof( in InitThreadList()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h317 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 DPrimType.h92 return ((Size + alignof(void *) - 1) / alignof(void *)) * alignof(void *);
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_thread.cpp38 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 DMicrosoftDemangle.h77 (((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 DDeclarationName.h187 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 DFunctionExtras.h164 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 Dcoroutine_handle.h106 …__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));

123456