| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | TrailingObjectsTest.cpp | 33 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() 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() 197 llvm::alignTo(Class3::totalSizeToAlloc<double, short, bool>(1, 1, 3), in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | OpenMPClause.cpp | 538 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty() 788 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>( in Create() 818 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>( in CreateEmpty() 1151 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() 1172 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty() 1204 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() 1222 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty() 1254 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() 1274 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty() 1316 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() [all …]
|
| H A D | ExprCXX.cpp | 256 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in Create() 270 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in CreateEmpty() 393 totalSizeToAlloc<DeclAccessPair, ASTTemplateKWAndArgsInfo, in Create() 485 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in Create() 498 totalSizeToAlloc<ASTTemplateKWAndArgsInfo, TemplateArgumentLoc>( in CreateEmpty() 1179 unsigned Size = totalSizeToAlloc<Stmt *>(CaptureInits.size() + 1); in Create() 1189 unsigned Size = totalSizeToAlloc<Stmt *>(NumCaptures + 1); in CreateDeserialized() 1350 void *Mem = Context.Allocate(totalSizeToAlloc<Expr *>(Args.size())); in Create() 1358 void *Mem = Context.Allocate(totalSizeToAlloc<Expr *>(NumArgs)); in CreateEmpty() 1419 unsigned Size = totalSizeToAlloc<ASTTemplateKWAndArgsInfo, in Create() [all …]
|
| H A D | ExprConcepts.cpp | 81 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()
|
| H A D | StmtCXX.cpp | 27 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()
|
| H A D | StmtObjC.cpp | 50 totalSizeToAlloc<Stmt *>(1 + NumCatchStmts + (atFinallyStmt != nullptr)); in Create() 59 size_t Size = totalSizeToAlloc<Stmt *>(1 + NumCatchStmts + HasFinally); in CreateEmpty()
|
| H A D | ExprObjC.cpp | 43 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()
|
| H A D | Stmt.cpp | 385 C.Allocate(totalSizeToAlloc<Stmt *, FPOptionsOverride>( in Create() 394 totalSizeToAlloc<Stmt *, FPOptionsOverride>(NumStmts, HasFPFeatures), in CreateEmpty() 427 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(Attrs.size()), in Create() 435 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(NumAttrs), in CreateEmpty() 963 totalSizeToAlloc<Stmt *, SourceLocation>( in Create() 973 totalSizeToAlloc<Stmt *, SourceLocation>( in CreateEmpty() 1084 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in Create() 1092 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in CreateEmpty() 1146 Ctx.Allocate(totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasVar), in Create() 1222 totalSizeToAlloc<Stmt *, SourceLocation>( in Create() [all …]
|
| H A D | DeclGroup.cpp | 22 unsigned Size = totalSizeToAlloc<Decl *>(NumDecls); in Create()
|
| H A D | Expr.cpp | 313 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in Create() 340 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in CreateEmpty() 482 totalSizeToAlloc<NestedNameSpecifierLoc, NamedDecl *, in Create() 501 totalSizeToAlloc<NestedNameSpecifierLoc, NamedDecl *, in CreateEmpty() 605 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName), in Create() 612 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName), in CreateEmpty() 4364 void *Mem = C.Allocate(totalSizeToAlloc<Stmt *>(NumIndexExprs + 1), in CreateEmpty() 4490 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(Exprs.size()), in Create() 4607 unsigned Size = totalSizeToAlloc<FPOptionsOverride>(HasFPFeatures); in Create() 4850 void *Mem = Ctx.Allocate(totalSizeToAlloc<Expr *>(NumSubExprs), in CreateEmpty() [all …]
|
| H A D | ASTConcept.cpp | 54 totalSizeToAlloc<UnsatisfiedConstraintRecord>( in Create()
|
| H A D | TemplateBase.cpp | 615 std::size_t size = totalSizeToAlloc<TemplateArgumentLoc>(List.size()); in Create() 626 totalSizeToAlloc<TemplateArgumentLoc>(List->getNumTemplateArgs()); in Create()
|
| H A D | DeclTemplate.cpp | 123 void *Mem = C.Allocate(totalSizeToAlloc<NamedDecl *, Expr *>( in Create() 875 void *Mem = Context.Allocate(totalSizeToAlloc<TemplateArgument>(Args.size())); in CreateCopy() 890 C.Allocate(totalSizeToAlloc<MemberSpecializationInfo *>(MSInfo ? 1 : 0)); in Create()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/ |
| H A D | Nodes.cpp | 189 unsigned allocSize = CompoundStmt::totalSizeToAlloc<Stmt *>(children.size()); in create() 222 unsigned allocSize = ReplaceStmt::totalSizeToAlloc<Expr *>(replExprs.size()); in create() 265 unsigned allocSize = CallExpr::totalSizeToAlloc<Expr *>(arguments.size()); in create() 306 OperationExpr::totalSizeToAlloc<Expr *, NamedAttributeDecl *>( in create() 335 unsigned allocSize = TupleExpr::totalSizeToAlloc<Expr *>(elements.size()); in create() 449 UserConstraintDecl::totalSizeToAlloc<VariableDecl *, StringRef>( in createImpl() 516 unsigned allocSize = UserRewriteDecl::totalSizeToAlloc<VariableDecl *>( in createImpl() 540 VariableDecl::totalSizeToAlloc<ConstraintRef>(constraints.size()); in create() 555 unsigned allocSize = Module::totalSizeToAlloc<Decl *>(children.size()); in create()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ParsedAttr.h | 731 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, 735 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, 739 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, 834 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, 839 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, 866 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in create() 891 ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in createTypeAttribute()
|
| H A D | ParsedTemplate.h | 206 totalSizeToAlloc<ParsedTemplateArgument>(TemplateArgs.size()))) in Create()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AffineMapDetail.h | 53 AffineMapStorage::totalSizeToAlloc<AffineExpr>(results.size()); in construct()
|
| H A D | TypeDetail.h | 110 auto byteSize = TupleTypeStorage::totalSizeToAlloc<Type>(key.size()); in construct()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | ParsedAttr.cpp | 46 return totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in allocated_size() 49 return totalSizeToAlloc<ArgsUnion, detail::AvailabilityData, in allocated_size()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | TrailingObjects.h | 326 totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType< in totalSizeToAlloc() function 354 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | AttributeImpl.h | 176 static size_t totalSizeToAlloc(StringRef Kind, StringRef Val) { in totalSizeToAlloc() function 177 return TrailingObjects::totalSizeToAlloc<char>(Kind.size() + 1 + in totalSizeToAlloc()
|
| H A D | Attributes.cpp | 132 pImpl->Alloc.Allocate(StringAttributeImpl::totalSizeToAlloc(Kind, Val), in get() 840 void *Mem = ::operator new(totalSizeToAlloc<Attribute>(SortedAttrs.size())); in getSorted() 1039 AttributeListImpl::totalSizeToAlloc<AttributeSet>(AttrSets.size()), in getImpl()
|
| H A D | DataLayout.cpp | 689 StructLayout::totalSizeToAlloc<uint64_t>(Ty->getNumElements())); in getStructLayout()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | MacroArgs.cpp | 52 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | Record.cpp | 244 totalSizeToAlloc<Record *>(Classes.size()), alignof(RecordRecTy)); in get() 408 void *Mem = RKImpl.Allocator.Allocate(totalSizeToAlloc<Init *>(Range.size()), in get() 635 void *Mem = RK.Allocator.Allocate(totalSizeToAlloc<Init *>(Range.size()), in get() 1937 void *Mem = RK.Allocator.Allocate(totalSizeToAlloc<Init *>(Args.size()), in get() 2128 totalSizeToAlloc<Init *>(2 * CondRange.size()), alignof(BitsInit)); in get() 2250 totalSizeToAlloc<Init *, StringInit *>(ArgRange.size(), NameRange.size()), in get()
|