Home
last modified time | relevance | path

Searched refs:totalSizeToAlloc (Results 1 – 25 of 54) sorted by relevance

123

/external/llvm-project/llvm/unittests/Support/
DTrailingObjectsTest.cpp33 void *Mem = ::operator new(totalSizeToAlloc<short>(NumShorts)); in create()
46 using TrailingObjects::totalSizeToAlloc;
76 ::operator new(totalSizeToAlloc<double, short>(HasDouble, HasShort)); in create()
102 using TrailingObjects::totalSizeToAlloc;
117 llvm::alignTo(Class1::totalSizeToAlloc<short>(1), alignof(Class1))); in TEST()
118 EXPECT_EQ(Class1::totalSizeToAlloc<short>(1), sizeof(Class1) + sizeof(short)); in TEST()
123 llvm::alignTo(Class1::totalSizeToAlloc<short>(3), alignof(Class1))); in TEST()
124 EXPECT_EQ(Class1::totalSizeToAlloc<short>(3), in TEST()
153 llvm::alignTo(Class2::totalSizeToAlloc<double, short>(1, 1), in TEST()
155 EXPECT_EQ((Class2::totalSizeToAlloc<double, short>(1, 1)), in TEST()
[all …]
/external/clang/lib/AST/
DOpenMPClause.cpp176 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create()
186 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty()
207 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); in Create()
219 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); in CreateEmpty()
256 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create()
270 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty()
279 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create()
287 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty()
323 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size() + 2)); in Create()
346 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * NumVars + 2)); in CreateEmpty()
[all …]
DExprCXX.cpp227 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>(1, in Create()
242 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in CreateEmpty()
383 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in Create()
396 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in CreateEmpty()
519 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create()
531 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in CreateEmpty()
544 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create()
556 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in CreateEmpty()
601 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create()
613 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in CreateEmpty()
[all …]
DExprObjC.cpp42 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Elements.size())); in Create()
49 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); in CreateEmpty()
93 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in Create()
101 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in CreateEmpty()
280 totalSizeToAlloc<void *, SourceLocation>(NumArgs + 1, NumStoredSelLocs), in alloc()
DDeclGroup.cpp22 unsigned Size = totalSizeToAlloc<Decl *>(NumDecls); in Create()
/external/llvm/unittests/Support/
DTrailingObjectsTest.cpp34 void *Mem = ::operator new(totalSizeToAlloc<short>(NumShorts)); in create()
44 using TrailingObjects::totalSizeToAlloc;
74 ::operator new(totalSizeToAlloc<double, short>(HasDouble, HasShort)); in create()
97 using TrailingObjects::totalSizeToAlloc;
109 EXPECT_EQ(Class1::totalSizeToAlloc<short>(1), sizeof(Class1) + sizeof(short)); in TEST()
110 EXPECT_EQ(Class1::totalSizeToAlloc<short>(3), in TEST()
134 EXPECT_EQ((Class2::totalSizeToAlloc<double, short>(1, 1)), in TEST()
/external/llvm-project/clang/lib/AST/
DOpenMPClause.cpp309 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create()
321 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty()
366 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), in Create()
381 C.Allocate(totalSizeToAlloc<SourceLocation, OpenMPDependClauseKind>(2, 1), in CreateEmpty()
399 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create()
409 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty()
430 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); in Create()
442 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); in CreateEmpty()
480 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create()
494 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty()
[all …]
DExprCXX.cpp256 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in Create()
270 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in CreateEmpty()
374 unsigned Size = totalSizeToAlloc<DeclAccessPair, ASTTemplateKWAndArgsInfo, in Create()
392 totalSizeToAlloc<DeclAccessPair, ASTTemplateKWAndArgsInfo, in Create()
404 unsigned Size = totalSizeToAlloc<DeclAccessPair, ASTTemplateKWAndArgsInfo, in CreateEmpty()
484 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in Create()
497 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in CreateEmpty()
713 C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *, FPOptionsOverride>( in Create()
727 C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *, FPOptionsOverride>( in CreateEmpty()
741 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create()
[all …]
DExprConcepts.cpp81 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
120 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
130 void *Buffer = C.Allocate(totalSizeToAlloc<TemplateArgument>( in Create()
200 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create()
211 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create()
DStmtCXX.cpp27 const size_t Size = totalSizeToAlloc<Stmt *>(handlers.size() + 1); in Create()
34 const size_t Size = totalSizeToAlloc<Stmt *>(numHandlers + 1); in Create()
88 std::size_t Size = totalSizeToAlloc<Stmt *>( in Create()
97 std::size_t Size = totalSizeToAlloc<Stmt *>( in Create()
DStmt.cpp382 C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt)); in Create()
389 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
420 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(Attrs.size()), in Create()
428 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(NumAttrs), in CreateEmpty()
951 totalSizeToAlloc<Stmt *, SourceLocation>( in Create()
961 totalSizeToAlloc<Stmt *, SourceLocation>( in CreateEmpty()
1064 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in Create()
1072 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in CreateEmpty()
1126 Ctx.Allocate(totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasVar), in Create()
1133 Ctx.Allocate(totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasVar), in CreateEmpty()
[all …]
DExprObjC.cpp43 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Elements.size())); in Create()
49 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); in CreateEmpty()
82 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in Create()
90 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in CreateEmpty()
254 totalSizeToAlloc<void *, SourceLocation>(NumArgs + 1, NumStoredSelLocs), in alloc()
DExpr.cpp293 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in Create()
320 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in CreateEmpty()
462 totalSizeToAlloc<NestedNameSpecifierLoc, NamedDecl *, in Create()
481 totalSizeToAlloc<NestedNameSpecifierLoc, NamedDecl *, in CreateEmpty()
528 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName), in Create()
535 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName), in CreateEmpty()
988 void *Mem = Ctx.Allocate(totalSizeToAlloc<unsigned, SourceLocation, char>( in Create()
999 void *Mem = Ctx.Allocate(totalSizeToAlloc<unsigned, SourceLocation, char>( in CreateEmpty()
1440 totalSizeToAlloc<OffsetOfNode, Expr *>(comps.size(), exprs.size())); in Create()
1449 C.Allocate(totalSizeToAlloc<OffsetOfNode, Expr *>(numComps, numExprs)); in CreateEmpty()
[all …]
DDeclGroup.cpp22 unsigned Size = totalSizeToAlloc<Decl *>(NumDecls); in Create()
DASTConcept.cpp55 totalSizeToAlloc<UnsatisfiedConstraintRecord>( in Create()
/external/llvm-project/clang/lib/Sema/
DParsedAttr.cpp46 return totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in allocated_size()
49 return totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in allocated_size()
/external/llvm-project/clang/include/clang/Sema/
DParsedAttr.h640 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
644 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
648 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
743 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
748 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
775 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in create()
800 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in createTypeAttribute()
DParsedTemplate.h207 totalSizeToAlloc<ParsedTemplateArgument>(TemplateArgs.size()))) in Create()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DTrailingObjects.h343 totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType< in totalSizeToAlloc() function
365 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/external/llvm-project/llvm/lib/IR/
DAttributeImpl.h175 static size_t totalSizeToAlloc(StringRef Kind, StringRef Val) { in totalSizeToAlloc() function
176 return TrailingObjects::totalSizeToAlloc<char>(Kind.size() + 1 + in totalSizeToAlloc()
/external/llvm/include/llvm/Support/
DTrailingObjects.h341 totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType<
363 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/external/llvm-project/llvm/include/llvm/Support/
DTrailingObjects.h342 totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType< in totalSizeToAlloc() function
364 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/external/llvm-project/mlir/lib/IR/
DAttributeDetail.h85 auto size = DictionaryAttributeStorage::totalSizeToAlloc<NamedAttribute>( in construct()
155 FloatAttributeStorage::totalSizeToAlloc<uint64_t>(elements.size()); in construct()
203 IntegerAttributeStorage::totalSizeToAlloc<uint64_t>(elements.size()); in construct()
309 auto size = SymbolRefAttributeStorage::totalSizeToAlloc<FlatSymbolRefAttr>( in construct()
DLocationDetail.h89 auto byteSize = totalSizeToAlloc<Location>(locs.size()); in construct()
/external/tensorflow/tensorflow/compiler/mlir/tfr/ir/
Dtfr_types.h48 auto byteSize = TFRTypeStorage::totalSizeToAlloc<StringAttr>(key.size()); in construct()

123