Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Support/
DAlignOfTest.cpp139 EXPECT_LE(1u, alignOf<A1>()); in TEST()
140 EXPECT_LE(2u, alignOf<A2>()); in TEST()
141 EXPECT_LE(4u, alignOf<A4>()); in TEST()
142 EXPECT_LE(8u, alignOf<A8>()); in TEST()
144 EXPECT_EQ(1u, alignOf<char>()); in TEST()
145 EXPECT_LE(alignOf<char>(), alignOf<short>()); in TEST()
146 EXPECT_LE(alignOf<short>(), alignOf<int>()); in TEST()
147 EXPECT_LE(alignOf<int>(), alignOf<long>()); in TEST()
148 EXPECT_LE(alignOf<long>(), alignOf<long long>()); in TEST()
149 EXPECT_LE(alignOf<char>(), alignOf<float>()); in TEST()
[all …]
DTrailingObjectsTest.cpp122 llvm::alignOf<double>())); in TEST()
123 EXPECT_EQ(llvm::alignOf<Class2>(), llvm::alignOf<double>()); in TEST()
166 llvm::RoundUpToAlignment(1, llvm::alignOf<double>())); in TEST()
/external/clang/lib/AST/
DStmtOpenMP.cpp61 llvm::alignOf<OMPClause *>()); in Create()
76 llvm::alignOf<OMPClause *>()); in CreateEmpty()
88 llvm::alignOf<OMPClause *>()); in Create()
116 llvm::alignOf<OMPClause *>()); in CreateEmpty()
129 llvm::alignOf<OMPClause *>()); in Create()
165 llvm::alignOf<OMPClause *>()); in CreateEmpty()
178 llvm::alignOf<OMPClause *>()); in Create()
213 llvm::alignOf<OMPClause *>()); in CreateEmpty()
224 llvm::alignOf<OMPClause *>()); in Create()
239 llvm::alignOf<OMPClause *>()); in CreateEmpty()
[all …]
DOpenMPClause.cpp44 llvm::alignOf<Expr *>()) + in Create()
56 llvm::alignOf<Expr *>()) + in CreateEmpty()
79 llvm::alignOf<Expr *>()) + in Create()
92 llvm::alignOf<Expr *>()) + in CreateEmpty()
130 llvm::alignOf<Expr *>()) + in Create()
144 llvm::alignOf<Expr *>()) + in CreateEmpty()
155 llvm::alignOf<Expr *>()) + in Create()
165 llvm::alignOf<Expr *>()) + in CreateEmpty()
202 llvm::alignOf<Expr *>()) + in Create()
225 llvm::alignOf<Expr *>()) + 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.cpp314 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty()
359 llvm::alignOf<DeclAccessPair>())); in OverloadExpr()
400 llvm::alignOf<DeclAccessPair>())); in initializeResults()
1008 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<VarDecl*>()); in Create()
1133 void *buffer = C.Allocate(size, llvm::alignOf<ExprWithCleanups>()); in Create()
1146 void *buffer = C.Allocate(size, llvm::alignOf<ExprWithCleanups>()); in Create()
1275 void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in Create()
1296 void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in CreateEmpty()
1384 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>()); in Create()
1399 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>()); in CreateEmpty()
DTemplateBase.cpp523 assert(llvm::alignOf<ASTTemplateArgumentListInfo>() >= in Create()
524 llvm::alignOf<TemplateArgumentLoc>()); in Create()
526 void *Mem = C.Allocate(size, llvm::alignOf<ASTTemplateArgumentListInfo>()); in Create()
DNestedNameSpecifier.cpp37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert()
116 new (Context, llvm::alignOf<NestedNameSpecifier>()) in GlobalSpecifier()
676 void *Mem = Context.Allocate(BufferSize, llvm::alignOf<void *>()); in getWithLocInContext()
DStmt.cpp318 llvm::alignOf<AttributedStmt>()); in Create()
326 llvm::alignOf<AttributedStmt>()); in CreateEmpty()
980 llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in getStoredCaptures()
1037 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in Create()
1050 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in CreateDeserialized()
DExpr.cpp404 llvm::alignOf<ASTTemplateKWAndArgsInfo>()); in Create()
408 llvm::alignOf<ASTTemplateKWAndArgsInfo>()); in Create()
412 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in Create()
430 llvm::alignOf<ASTTemplateKWAndArgsInfo>()); in CreateEmpty()
434 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in CreateEmpty()
848 llvm::alignOf<StringLiteral>()); in Create()
866 llvm::alignOf<StringLiteral>()); in CreateEmpty()
1435 void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>()); in Create()
3734 llvm::alignOf<DesignatedInitExpr>()); in Create()
3886 llvm::alignOf<PseudoObjectExpr>()); in Create()
[all …]
DTypeLoc.cpp22 static const unsigned TypeLocMaxDataAlign = llvm::alignOf<void *>();
/external/llvm/include/llvm/Support/
DAllocator.h381 assert(Begin == (char*)alignAddr(Begin, alignOf<T>())); in DestroyAll()
390 char *Begin = (char*)alignAddr(*I, alignOf<T>()); in DestroyAll()
400 DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size); in DestroyAll()
DAlignOf.h79 inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf() function
/external/llvm/lib/MC/
DMCSymbol.cpp35 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()
DASTVector.h384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()
/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/Parse/
DParsePragma.cpp1038 sizeof(PragmaPackInfo), llvm::alignOf<PragmaPackInfo>()); in HandlePragma()
1048 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
1093 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
1164 sizeof(Token) * 1, llvm::alignOf<Token>()); in ParseAlignPragma()
1257 sizeof(Token) * 2 * Identifiers.size(), llvm::alignOf<Token>()); in HandlePragma()
1308 sizeof(Token) * 3, llvm::alignOf<Token>()); in HandlePragma()
1321 sizeof(Token) * 2, llvm::alignOf<Token>()); in HandlePragma()
1367 sizeof(Token) * 3, llvm::alignOf<Token>()); in HandlePragma()
1390 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
1449 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
/external/clang/lib/Lex/
DMacroInfo.cpp243 llvm::alignOf<ModuleMacro>()); in create()
DPreprocessingRecord.cpp35 = (char*)PPRec.Allocate(FileName.size() + 1, llvm::alignOf<char>()); in InclusionDirective()
/external/llvm/include/llvm/ADT/
DStringMap.h156 unsigned Alignment = alignOf<StringMapEntry>(); in Create()
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp332 llvm::alignOf<CodeCompletionString>()); in TakeString()
/external/llvm/lib/IR/
DMetadata.cpp396 OpSize = RoundUpToAlignment(OpSize, llvm::alignOf<uint64_t>()); in operator new()
407 OpSize = RoundUpToAlignment(OpSize, llvm::alignOf<uint64_t>()); in operator delete()

12