Home
last modified time | relevance | path

Searched refs:alignOf (Results 1 – 25 of 46) sorted by relevance

12

/external/llvm/unittests/Support/
DAlignOfTest.cpp155 EXPECT_LE(1u, alignOf<A1>()); in TEST()
156 EXPECT_LE(2u, alignOf<A2>()); in TEST()
157 EXPECT_LE(4u, alignOf<A4>()); in TEST()
158 EXPECT_LE(8u, alignOf<A8>()); in TEST()
160 EXPECT_EQ(1u, alignOf<char>()); in TEST()
161 EXPECT_LE(alignOf<char>(), alignOf<short>()); in TEST()
162 EXPECT_LE(alignOf<short>(), alignOf<int>()); in TEST()
163 EXPECT_LE(alignOf<int>(), alignOf<long>()); in TEST()
164 EXPECT_LE(alignOf<long>(), alignOf<long long>()); in TEST()
165 EXPECT_LE(alignOf<char>(), alignOf<float>()); in TEST()
[all …]
DTrailingObjectsTest.cpp124 llvm::alignTo(sizeof(bool) * 2, llvm::alignOf<double>())); in TEST()
125 EXPECT_EQ(llvm::alignOf<Class2>(), llvm::alignOf<double>()); in TEST()
167 EXPECT_EQ(sizeof(Class3), llvm::alignTo(1, llvm::alignOf<double>())); in TEST()
187 llvm::alignTo(sizeof(long) + 1, llvm::alignOf<long>())); in TEST()
188 EXPECT_EQ(sizeof(Class4), llvm::alignTo(1, llvm::alignOf<long>())); in TEST()
194 reinterpret_cast<char *>(C + 1) + 1, llvm::alignOf<long>()))); in TEST()
/external/clang/lib/AST/
DStmtOpenMP.cpp61 llvm::alignTo(sizeof(OMPParallelDirective), llvm::alignOf<OMPClause *>()); in Create()
76 llvm::alignTo(sizeof(OMPParallelDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
88 llvm::alignTo(sizeof(OMPSimdDirective), llvm::alignOf<OMPClause *>()); in Create()
117 llvm::alignTo(sizeof(OMPSimdDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
130 llvm::alignTo(sizeof(OMPForDirective), llvm::alignOf<OMPClause *>()); in Create()
170 llvm::alignTo(sizeof(OMPForDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
183 llvm::alignTo(sizeof(OMPForSimdDirective), llvm::alignOf<OMPClause *>()); in Create()
222 llvm::alignTo(sizeof(OMPForSimdDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
233 llvm::alignTo(sizeof(OMPSectionsDirective), llvm::alignOf<OMPClause *>()); in Create()
248 llvm::alignTo(sizeof(OMPSectionsDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
[all …]
DStmtObjC.cpp53 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in Create()
63 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in CreateEmpty()
DStmtCXX.cpp31 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create()
40 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create()
DExprCXX.cpp229 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>()); in Create()
244 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty()
289 llvm::alignOf<DeclAccessPair>())); in OverloadExpr()
329 llvm::alignOf<DeclAccessPair>())); in initializeResults()
1044 llvm::alignOf<ExprWithCleanups>()); in Create()
1058 llvm::alignOf<ExprWithCleanups>()); in Create()
1157 void *Mem = C.Allocate(Size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in Create()
1174 void *Mem = C.Allocate(Size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in CreateEmpty()
1258 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedMemberExpr>()); in Create()
1273 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedMemberExpr>()); in CreateEmpty()
DNestedNameSpecifier.cpp37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert()
116 new (Context, llvm::alignOf<NestedNameSpecifier>()) in GlobalSpecifier()
690 void *Mem = Context.Allocate(BufferSize, llvm::alignOf<void *>()); in getWithLocInContext()
DStmt.cpp318 llvm::alignOf<AttributedStmt>()); in Create()
326 llvm::alignOf<AttributedStmt>()); in CreateEmpty()
1001 unsigned FirstCaptureOffset = llvm::alignTo(Size, llvm::alignOf<Capture>()); in getStoredCaptures()
1058 Size = llvm::alignTo(Size, llvm::alignOf<Capture>()); in Create()
1071 Size = llvm::alignTo(Size, llvm::alignOf<Capture>()); in CreateDeserialized()
DExpr.cpp406 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in Create()
423 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in CreateEmpty()
837 llvm::alignOf<StringLiteral>()); in Create()
855 llvm::alignOf<StringLiteral>()); in CreateEmpty()
1420 void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>()); in Create()
3594 llvm::alignOf<DesignatedInitExpr>()); in Create()
3603 llvm::alignOf<DesignatedInitExpr>()); in CreateEmpty()
3743 llvm::alignOf<PseudoObjectExpr>()); in Create()
3771 llvm::alignOf<PseudoObjectExpr>()); in Create()
DTemplateBase.cpp533 void *Mem = C.Allocate(size, llvm::alignOf<ASTTemplateArgumentListInfo>()); in Create()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DDebugSubsectionRecord.cpp73 assert(Writer.getOffset() % alignOf(Container) == 0 && in commit()
82 Header.Length = alignTo(DataSize, alignOf(Container)); in commit()
/external/llvm/include/llvm/Support/
DTrailingObjects.h172 llvm::alignAddr(Ptr, llvm::alignOf<NextTy>()));
187 llvm::alignAddr(Ptr, llvm::alignOf<NextTy>()));
200 ? llvm::alignTo(SizeSoFar, llvm::alignOf<NextTy>())
DAllocator.h384 assert(Begin == (char*)alignAddr(Begin, alignOf<T>())); in DestroyAll()
393 char *Begin = (char*)alignAddr(*I, alignOf<T>()); in DestroyAll()
403 DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size); in DestroyAll()
DAlignOf.h106 inline unsigned alignOf() { return AlignOf<T>::Alignment; }
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp72 assert(Symbol.length() % alignOf(CodeViewContainer::Pdb) == 0 && in addSymbol()
156 assert(SymbolWriter.getOffset() % alignOf(CodeViewContainer::Pdb) == 0 && in commit()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DAlignOf.h57 static inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf() function
DAllocator.h209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>());
/external/clang/include/clang/AST/
DTypeLoc.h350 return std::max(llvm::alignOf<LocalData>(), in getLocalDataAlignment()
551 return needsExtraLocalData() ? llvm::alignOf<WrittenBuiltinSpecs>() : 1; in getExtraLocalDataAlignment()
963 assert(llvm::alignOf<ObjCObjectTypeLoc>() in getExtraLocalDataAlignment()
964 >= llvm::alignOf<TypeSourceInfo *>() && in getExtraLocalDataAlignment()
966 return llvm::alignOf<TypeSourceInfo *>(); in getExtraLocalDataAlignment()
1333 return llvm::alignOf<ParmVarDecl*>(); in getExtraLocalDataAlignment()
1528 return llvm::alignOf<TemplateArgumentLocInfo>(); in getExtraLocalDataAlignment()
1938 return llvm::alignOf<TemplateArgumentLocInfo>(); in getExtraLocalDataAlignment()
DASTVector.h384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()
/external/llvm/lib/MC/
DMCSymbol.cpp37 void *Storage = Ctx.allocate(Size, alignOf<NameEntryStorageTy>()); in operator new()
/external/deqp/framework/delibs/decpp/
DdeDefs.hpp76 size_t alignOf (void) in alignOf() function
DdeAppendList.hpp77 deAlign32((deUint32)alignOf<ElementType>(), (deUint32)sizeof(void*))))) in Block()
/external/clang/lib/Lex/
DMacroInfo.cpp243 llvm::alignOf<ModuleMacro>()); in create()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/
DCodeView.h572 inline uint32_t alignOf(CodeViewContainer Container) { in alignOf() function
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DStringMap.h159 unsigned Alignment = alignOf<StringMapEntry>(); in Create()

12