Home
last modified time | relevance | path

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

123456

/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.cpp39 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new()
41 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.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_foote in do_allocate()
[all...]
/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.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/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/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h185 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in AllocateSlow()
282 assert(Out % alignof(T) == 0 && "Wrong alignment information"); in identifyKnownAlignedObject()
283 return Out / alignof(T); in identifyKnownAlignedObject()
345 alignof(std::max_align_t)); in StartNewSlab()
362 alignof(std::max_align_t)); in DeallocateSlabs()
371 this->getAllocator().Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs()
449 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/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.cpp307 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()
622 alignof(CXXOperatorCallExpr)); in Create()
635 alignof(CXXOperatorCallExpr)); in CreateEmpty()
687 alignof(CXXMemberCallExpr)); in Create()
700 alignof(CXXMemberCallExpr)); in CreateEmpty()
961 alignof(UserDefinedLiteral)); in Create()
[all …]
H A DStmt.cpp389 alignof(CompoundStmt)); in Create()
397 alignof(CompoundStmt)); in CreateEmpty()
430 alignof(AttributedStmt)); in Create()
438 alignof(AttributedStmt)); in CreateEmpty()
968 alignof(IfStmt)); in Create()
978 alignof(IfStmt)); in CreateEmpty()
1088 alignof(SwitchStmt)); in Create()
1096 alignof(SwitchStmt)); in CreateEmpty()
1150 alignof(WhileStmt)); in Create()
1157 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()
H A DASTConcept.cpp66 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Create()
74 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Rebuild()
H A DOpenACCClause.cpp54 C.Allocate(sizeof(OpenACCDefaultClause), alignof(OpenACCDefaultClause)); in Create()
64 void *Mem = C.Allocate(sizeof(OpenACCIfClause), alignof(OpenACCIfClause)); in Create()
84 void *Mem = C.Allocate(sizeof(OpenACCIfClause), alignof(OpenACCIfClause)); in Create()
132 alignof(OpenACCNumWorkersClause)); in Create()
153 alignof(OpenACCVectorLengthClause)); in Create()
174 C.Allocate(sizeof(OpenACCAsyncClause), alignof(OpenACCAsyncClause)); in Create()
/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/llvm/include/llvm/IR/
H A DUser.h317 static_assert(alignof(Use) >= alignof(User),
319 static_assert(alignof(Use *) >= alignof(User),
/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/compiler-rt/lib/lsan/
H A Dlsan_thread.cpp38 alignas(alignof(ThreadRegistry)) static char in InitializeThreads()
43 alignas(alignof(ThreadArgRetval)) static char in InitializeThreads()
/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/
H A DCtxInstrProfiling.h70 static_assert(alignof(Arena) == ExpectedAlignment);
74 static_assert(alignof(ContextNode) == ExpectedAlignment);
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DPrimType.h105 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()

123456