Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DSmallVector.cpp32 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
34 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
36 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
38 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
H A DItaniumManglingCanonicalizer.cpp76 class alignas(alignof(Node *)) NodeHeader : public llvm::FoldingSetNode {
99 return {new (RawAlloc.Allocate(sizeof(T), alignof(T))) in getOrCreateNode()
114 static_assert(alignof(T) <= alignof(NodeHeader), in getOrCreateNode()
117 RawAlloc.Allocate(sizeof(NodeHeader) + sizeof(T), alignof(NodeHeader)); in getOrCreateNode()
130 return RawAlloc.Allocate(sizeof(Node *) * sz, alignof(Node *)); in allocateNodeArray()
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DMCSymbol.cpp40 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new()
42 void *Storage = Ctx.allocate(Size, alignof(NameEntryStorageTy)); in operator new()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp28 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 DStmt.cpp421 alignof(AttributedStmt)); in Create()
959 alignof(IfStmt)); in Create()
969 alignof(IfStmt)); in CreateEmpty()
1079 alignof(SwitchStmt)); in Create()
1087 alignof(SwitchStmt)); in CreateEmpty()
1141 alignof(WhileStmt)); in Create()
1148 alignof(WhileStmt)); in CreateEmpty()
1199 alignof(ReturnStmt)); in Create()
1206 alignof(ReturnStmt)); in CreateEmpty()
1218 alignof(CaseStmt)); in Create()
[all …]
H A DExprCXX.cpp258 alignof(CXXNewExpr)); in Create()
272 alignof(CXXNewExpr)); in CreateEmpty()
633 alignof(CXXMemberCallExpr)); in Create()
646 alignof(CXXMemberCallExpr)); in CreateEmpty()
901 alignof(UserDefinedLiteral)); in Create()
1006 alignof(CXXTemporaryObjectExpr)); in Create()
1017 alignof(CXXTemporaryObjectExpr)); in CreateEmpty()
1040 alignof(CXXConstructExpr)); in Create()
1051 alignof(CXXConstructExpr)); in CreateEmpty()
1307 alignof(ExprWithCleanups)); in Create()
[all …]
H A DStmtObjC.cpp52 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create()
62 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h175 AllocatorT::Allocate(PaddedSize, alignof(std::max_align_t)); in Allocate()
272 assert(Out % alignof(T) == 0 && "Wrong alignment information"); in identifyKnownAlignedObject()
273 return Out / alignof(T); in identifyKnownAlignedObject()
335 AllocatorT::Allocate(AllocatedSlabSize, alignof(std::max_align_t)); in StartNewSlab()
351 AllocatorT::Deallocate(*I, AllocatedSlabSize, alignof(std::max_align_t)); in DeallocateSlabs()
360 AllocatorT::Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs()
438 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 DAllocatorBase.h69 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
76 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T), alignof(T));
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 DAlignOf.h29 alignas(alignof(AlignedUnion)) char buffer[sizeof(AlignedUnion)];
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DPrimType.h58 return ((Size + alignof(void *) - 1) / alignof(void *)) * alignof(void *);
H A DDescriptor.cpp210 AllocSize(alignof(void *)), IsConst(true), IsMutable(false), in Descriptor()
220 AllocSize(std::max<size_t>(alignof(void *), Size)), ElemDesc(Elem), in Descriptor()
230 Size(UnknownSizeMark), AllocSize(alignof(void *)), ElemDesc(Elem), in Descriptor()
238 : Source(D), ElemSize(std::max<size_t>(alignof(void *), R->getFullSize())), in Descriptor()
/freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h78 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in allocArray()
97 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in alloc()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DFunctionExtras.h158 typename std::aligned_storage<InlineStorageSize, alignof(void *)>::type
261 alignof(CallableT) > alignof(decltype(StorageUnion.InlineStorage))) {
266 auto Alignment = alignof(CallableT);
H A DStringMapEntry.h123 sizeof(StringMapEntry), alignof(StringMapEntry), key, allocator)) in Create()
141 alignof(StringMapEntry)); in Destroy()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclarationName.h188 static_assert(alignof(IdentifierInfo) >= 8 &&
189 alignof(detail::DeclarationNameExtra) >= 8 &&
190 alignof(detail::CXXSpecialNameExtra) >= 8 &&
191 alignof(detail::CXXOperatorIdName) >= 8 &&
192 alignof(detail::CXXDeductionGuideNameExtra) >= 8 &&
193 alignof(detail::CXXLiteralOperatorIdName) >= 8,
/freebsd-13.1/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileBinaryUtils.h73 assert((uint64_t)loc % alignof(T) == 0 && "invalid pointer alignment"); in read16()
79 assert((uint64_t)loc % alignof(T) == 0 && "invalid pointer alignment"); in read32()
85 assert((uint64_t)loc % alignof(T) == 0 && "invalid pointer alignment"); in read64()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DEHScopeStack.h277 static_assert(alignof(T) <= ScopeStackAlignment,
287 static_assert(alignof(T) <= ScopeStackAlignment,
309 static_assert(alignof(T) <= ScopeStackAlignment,
/freebsd-13.1/contrib/llvm-project/clang/lib/Headers/
H A Dstdalign.h15 #define alignof _Alignof macro
/freebsd-13.1/include/
H A Dstdalign.h46 #define alignof _Alignof macro

12345