| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.abi/ |
| H A D | align.C | 23 #define alignof(type) (alignmentof<type> ()) macro 32 if (alignof (char) != 1) in main() 36 if (alignof (signed char) != 1) in main() 40 if (alignof (unsigned char) != 1) in main() 44 if (alignof (short) != 2) in main() 48 if (alignof (signed short) != 2) in main() 52 if (alignof (unsigned short) != 2) in main() 56 if (alignof (int) != 4) in main() 60 if (alignof (signed int) != 4) in main() 64 if (alignof (unsigned int) != 4) in main() [all …]
|
| H A D | aggregates.C | 23 #define alignof(type) (alignmentof<type> ()) macro 75 if (alignof (struct S1) != 1) in main() 82 if (alignof (struct S2) != 4) in main() 95 if (alignof (struct S3) != 2) in main() 104 if (alignof (struct S4) != 8) in main() 115 if (alignof (union U5) != 4) in main()
|
| H A D | bitfields.C | 25 #define alignof(type) (alignmentof<type> ()) macro 117 if (alignof (struct S1) != 4) in main() 126 if (alignof (struct S2) != 8) in main() 145 if (alignof (union U4) != 2) in main() 152 if (alignof (struct S5) != 1) in main()
|
| /openbsd-src/gnu/llvm/libcxx/src/support/win32/ |
| H A D | thread_win32.cpp | 19 static_assert(alignof(__libcpp_mutex_t) == alignof(SRWLOCK), ""); 23 static_assert(alignof(__libcpp_recursive_mutex_t) == alignof(CRITICAL_SECTION), 27 static_assert(alignof(__libcpp_condvar_t) == alignof(CONDITION_VARIABLE), ""); 30 static_assert(alignof(__libcpp_exec_once_flag) == alignof(INIT_ONCE), ""); 33 static_assert(alignof(__libcpp_thread_id) == alignof(DWORD), ""); 36 static_assert(alignof(__libcpp_thread_t) == alignof(HANDLE), ""); 39 static_assert(alignof(__libcpp_tls_key) == alignof(DWORD), "");
|
| /openbsd-src/gnu/llvm/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),
|
| H A D | ItaniumManglingCanonicalizer.cpp | 75 class alignas(alignof(Node *)) NodeHeader : public llvm::FoldingSetNode { 98 return {new (RawAlloc.Allocate(sizeof(T), alignof(T))) in getOrCreateNode() 113 static_assert(alignof(T) <= alignof(NodeHeader), in getOrCreateNode() 116 RawAlloc.Allocate(sizeof(NodeHeader) + sizeof(T), alignof(NodeHeader)); in getOrCreateNode() 129 return RawAlloc.Allocate(sizeof(Node *) * sz, alignof(Node *)); in allocateNodeArray()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/libcxx/src/ |
| H A D | memory_resource.cpp | 159 const size_t footer_align = alignof(__chunk_footer); in __do_allocate() 234 static_assert(__default_alignment >= alignof(std::max_align_t), ""); in __allocate_in_new_chunk() 235 static_assert(__default_alignment >= alignof(__chunk_footer), ""); in __allocate_in_new_chunk() 236 static_assert(__default_alignment >= alignof(__vacancy_header), ""); in __allocate_in_new_chunk() 239 const size_t footer_align = alignof(__chunk_footer); in __allocate_in_new_chunk() 271 static const size_t __default_alignment = alignof(max_align_t); 279 if (align > alignof(std::max_align_t) || bytes > (size_t(1) << __num_fixed_pools_)) in __pool_index() 336 …__res_->deallocate(__fixed_pools_, __num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool… in release() 356 … (__fixed_pool*)__res_->allocate(__num_fixed_pools_ * sizeof(__fixed_pool), alignof(__fixed_pool)); in do_allocate() 451 const size_t footer_align = alignof(__chunk_footer); in do_allocate()
|
| /openbsd-src/gnu/llvm/libcxx/include/__memory_resource/ |
| H A D | polymorphic_allocator.h | 67 … return static_cast<_ValueType*>(__res_->allocate(__n * sizeof(_ValueType), alignof(_ValueType))); in allocate() 72 __res_->deallocate(__p, __n * sizeof(_ValueType), alignof(_ValueType)); in deallocate() 78 allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) { 82 void deallocate_bytes(void* __ptr, size_t __nbytes, size_t __alignment = alignof(max_align_t)) { 90 return static_cast<_Type*>(allocate_bytes(__n * sizeof(_Type), alignof(_Type))); 95 deallocate_bytes(__ptr, __n * sizeof(_Type), alignof(_Type));
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | PrimType.h | 59 return ((Size + alignof(void *) - 1) / alignof(void *)) * alignof(void *);
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | StmtCXX.cpp | 28 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()
|
| H A D | ExprCXX.cpp | 259 alignof(CXXNewExpr)); in Create() 273 alignof(CXXNewExpr)); in CreateEmpty() 378 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create() 396 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in Create() 409 void *Mem = Context.Allocate(Size, alignof(UnresolvedLookupExpr)); in CreateEmpty() 569 alignof(CXXOperatorCallExpr)); in Create() 582 alignof(CXXOperatorCallExpr)); in CreateEmpty() 634 alignof(CXXMemberCallExpr)); in Create() 647 alignof(CXXMemberCallExpr)); in CreateEmpty() 902 alignof(UserDefinedLiteral)); in Create() [all …]
|
| H A D | Stmt.cpp | 388 alignof(CompoundStmt)); in Create() 396 alignof(CompoundStmt)); in CreateEmpty() 429 alignof(AttributedStmt)); in Create() 437 alignof(AttributedStmt)); in CreateEmpty() 966 alignof(IfStmt)); in Create() 976 alignof(IfStmt)); in CreateEmpty() 1086 alignof(SwitchStmt)); in Create() 1094 alignof(SwitchStmt)); in CreateEmpty() 1148 alignof(WhileStmt)); in Create() 1155 alignof(WhileStmt)); in CreateEmpty() [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 | 72 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Create() 80 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Rebuild()
|
| /openbsd-src/gnu/llvm/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 | AllocatorBase.h | 70 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T))); 77 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T), alignof(T));
|
| H A D | ArrayRecycler.h | 28 template <class T, size_t Align = alignof(T)> class ArrayRecycler { 35 static_assert(Align >= alignof(FreeList), "Object underaligned");
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | User.h | 317 static_assert(alignof(Use) >= alignof(User), 319 static_assert(alignof(Use *) >= alignof(User),
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/libcxxabi/src/ |
| H A D | fallback_malloc.cpp | 80 const size_t RequiredAlignment = alignof(FallbackMaxAlignType); 82 static_assert(alignof(FallbackMaxAlignType) % sizeof(heap_node) == 0, 87 const size_t NodesPerAlignment = alignof(FallbackMaxAlignType) / sizeof(heap_node); 259 if (void* dest = std::__libcpp_aligned_alloc(alignof(__aligned_type), size)) in __aligned_malloc_with_fallback()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Demangle/ |
| H A D | MicrosoftDemangle.h | 76 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in allocArray() 95 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in alloc()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/ |
| H A D | README | 3 alignof - gcc alignof builtin
|