Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Support/
DAlignOfTest.cpp137 EXPECT_LE(1u, alignOf<A1>()); in TEST()
138 EXPECT_LE(2u, alignOf<A2>()); in TEST()
139 EXPECT_LE(4u, alignOf<A4>()); in TEST()
140 EXPECT_LE(8u, alignOf<A8>()); in TEST()
142 EXPECT_EQ(1u, alignOf<char>()); in TEST()
143 EXPECT_LE(alignOf<char>(), alignOf<short>()); in TEST()
144 EXPECT_LE(alignOf<short>(), alignOf<int>()); in TEST()
145 EXPECT_LE(alignOf<int>(), alignOf<long>()); in TEST()
146 EXPECT_LE(alignOf<long>(), alignOf<long long>()); in TEST()
147 EXPECT_LE(alignOf<char>(), alignOf<float>()); in TEST()
[all …]
/external/clang/lib/AST/
DStmt.cpp290 llvm::alignOf<AttributedStmt>()); in Create()
298 llvm::alignOf<AttributedStmt>()); in CreateEmpty()
740 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in Create()
750 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in CreateEmpty()
767 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create()
776 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create()
1017 llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in getStoredCaptures()
1074 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in Create()
1087 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in CreateDeserialized()
1131 llvm::alignOf<Expr *>()) + in Create()
[all …]
DExprCXX.cpp319 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty()
364 llvm::alignOf<DeclAccessPair>())); in OverloadExpr()
406 llvm::alignOf<DeclAccessPair>())); in initializeResults()
1003 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<VarDecl*>()); in Create()
1119 void *buffer = C.Allocate(size, llvm::alignOf<ExprWithCleanups>()); in Create()
1132 void *buffer = C.Allocate(size, llvm::alignOf<ExprWithCleanups>()); in Create()
1261 void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in Create()
1282 void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>()); in CreateEmpty()
1370 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>()); in Create()
1385 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>()); in CreateEmpty()
DTemplateBase.cpp514 assert(llvm::alignOf<ASTTemplateArgumentListInfo>() >= in Create()
515 llvm::alignOf<TemplateArgumentLoc>()); in Create()
517 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()
631 void *Mem = Context.Allocate(BufferSize, llvm::alignOf<void *>()); in getWithLocInContext()
DExpr.cpp417 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in Create()
436 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in CreateEmpty()
805 llvm::alignOf<StringLiteral>()); in Create()
823 llvm::alignOf<StringLiteral>()); in CreateEmpty()
1348 void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>()); in Create()
3935 llvm::alignOf<PseudoObjectExpr>()); in Create()
3964 llvm::alignOf<PseudoObjectExpr>()); in Create()
DDeclTemplate.cpp62 unsigned Align = std::max(llvm::alignOf<TemplateParameterList>(), in Create()
63 llvm::alignOf<NamedDecl*>()); in Create()
DASTContext.cpp6179 QTN = new (*this, llvm::alignOf<QualifiedTemplateName>()) in getQualifiedTemplateName()
6207 QTN = new (*this, llvm::alignOf<DependentTemplateName>()) in getDependentTemplateName()
6211 QTN = new (*this, llvm::alignOf<DependentTemplateName>()) in getDependentTemplateName()
6243 QTN = new (*this, llvm::alignOf<DependentTemplateName>()) in getDependentTemplateName()
6247 QTN = new (*this, llvm::alignOf<DependentTemplateName>()) in getDependentTemplateName()
DDeclCXX.cpp1644 llvm::alignOf<CXXCtorInitializer>()); in Create()
/external/llvm/include/llvm/Support/
DAllocator.h376 assert(Begin == alignPtr(Begin, alignOf<T>())); in DestroyAll()
385 char *Begin = alignPtr((char *)*I, alignOf<T>()); in DestroyAll()
395 DestroyElements(alignPtr((char *)Ptr, alignOf<T>()), (char *)Ptr + Size); in DestroyAll()
DAlignOf.h58 inline unsigned alignOf() { return AlignOf<T>::Alignment; } in alignOf() function
DOnDiskHashTable.h174 uint64_t N = llvm::OffsetToAlignment(TableOff, alignOf<offset_type>()); in Emit()
/external/clang/lib/Parse/
DParsePragma.cpp792 sizeof(PragmaPackInfo), llvm::alignOf<PragmaPackInfo>()); in HandlePragma()
802 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
845 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
914 sizeof(Token) * 1, llvm::alignOf<Token>()); in ParseAlignPragma()
1006 sizeof(Token) * 2 * Identifiers.size(), llvm::alignOf<Token>()); in HandlePragma()
1057 sizeof(Token) * 3, llvm::alignOf<Token>()); in HandlePragma()
1069 sizeof(Token) * 2, llvm::alignOf<Token>()); in HandlePragma()
1114 sizeof(Token) * 3, llvm::alignOf<Token>()); in HandlePragma()
1136 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
1194 sizeof(Token) * 1, llvm::alignOf<Token>()); in HandlePragma()
/external/clang/include/clang/AST/
DTypeLoc.h331 return std::max(llvm::alignOf<LocalData>(), in getLocalDataAlignment()
518 return needsExtraLocalData() ? llvm::alignOf<WrittenBuiltinSpecs>() : 1; in getExtraLocalDataAlignment()
884 return llvm::alignOf<SourceLocation>(); in getExtraLocalDataAlignment()
1251 return llvm::alignOf<ParmVarDecl*>(); in getExtraLocalDataAlignment()
1446 return llvm::alignOf<TemplateArgumentLocInfo>(); in getExtraLocalDataAlignment()
1854 return llvm::alignOf<TemplateArgumentLocInfo>(); in getExtraLocalDataAlignment()
DOpenMPClause.h83 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs()
95 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>()))); in setVarRefs()
141 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs()
DStmtOpenMP.h74 llvm::alignOf<OMPClause *>())) {} in OMPExecutableDirective()
DASTVector.h383 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()
/external/llvm/include/llvm/ADT/
DStringMap.h151 unsigned Alignment = alignOf<StringMapEntry>(); in Create()
DIntervalMap.h1054 assert((uintptr_t(data) & (alignOf<RootLeaf>() - 1)) == 0 && in IntervalMap()
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp335 llvm::alignOf<CodeCompletionString>()); in TakeString()
DSemaCXXScopeSpec.cpp897 llvm::alignOf<NestedNameSpecifierAnnotation>()); in SaveNestedNameSpecifierAnnotation()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp35 = (char*)PPRec.Allocate(FileName.size() + 1, llvm::alignOf<char>()); in InclusionDirective()
/external/clang/lib/Basic/
DIdentifierTable.cpp542 llvm::alignOf<MultiKeywordSelector>()); in getSelector()
/external/llvm/include/llvm/CodeGen/
DSlotIndexes.h363 alignOf<IndexListEntry>()));
/external/clang/lib/CodeGen/
DCGCleanup.cpp401 assert((I % llvm::alignOf<LifetimeExtendedCleanupHeader>() == 0) && in PopCleanupBlocks()

12