Home
last modified time | relevance | path

Searched refs:alignOf (Results 1 – 25 of 50) 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()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DLayout.cpp35 alignOf = std::max(alignOf, align); in requireAlignment()
44 return sizeOf == other.sizeOf && alignOf == other.alignOf; in operator ==()
49 requireAlignment(other.alignOf, true); in operator +=()
139 layout.sizeOf = RoundUpToMultipleOf(layout.sizeOf, layout.alignOf); in MetalLayoutOf()
159 auto layout = Layout{scalarLayout.sizeOf * innerScale, scalarLayout.alignOf}; in MetalLayoutOf()
261 layout.sizeOf = RoundUpToMultipleOf(layout.sizeOf, layout.alignOf); in CommonGlslStructLayoutOf()
308 Layout{scalarLayout.sizeOf * sizeScale, scalarLayout.alignOf * alignScale}; in CommonGlslLayoutOf()
DLayout.h44 size_t alignOf; member
DModifyStruct.cpp547 if (glslLayout.alignOf > metalLayout.alignOf && field != first) in introducePadding()
550 metalLayoutTotal.requireAlignment(glslLayout.alignOf, true); in introducePadding()
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DDebugSubsectionRecord.cpp70 assert(Writer.getOffset() % alignOf(Container) == 0 && in commit()
79 Header.Length = alignTo(DataSize, alignOf(Container)); in commit()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DDebugSubsectionRecord.cpp72 assert(Writer.getOffset() % alignOf(Container) == 0 && in commit()
81 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/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp80 assert(BulkSymbols.size() % alignOf(CodeViewContainer::Pdb) == 0 && in addSymbolsInBulk()
161 assert(SymbolWriter.getOffset() % alignOf(CodeViewContainer::Pdb) == 0 && in commit()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp80 assert(BulkSymbols.size() % alignOf(CodeViewContainer::Pdb) == 0 && in addSymbolsInBulk()
162 assert(SymbolWriter.getOffset() % alignOf(CodeViewContainer::Pdb) == 0 && in commit()
/external/llvm/lib/MC/
DMCSymbol.cpp37 void *Storage = Ctx.allocate(Size, alignOf<NameEntryStorageTy>()); in operator new()
/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()
/external/deqp/framework/delibs/decpp/
DdeDefs.hpp124 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-10.0/llvm/include/llvm/DebugInfo/CodeView/
DCodeView.h606 inline uint32_t alignOf(CodeViewContainer Container) { in alignOf() function

12