| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 88 AllocationType AllocType) { in addAllocTypeAttribute() argument 89 auto AllocTypeString = getAllocTypeAttributeString(AllocType); in addAllocTypeAttribute() 100 void CallStackTrie::addCallStack(AllocationType AllocType, in addCallStack() argument 110 Alloc->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack() 113 Alloc = new CallStackTrieNode(AllocType); in addCallStack() 122 Curr->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack() 126 auto *New = new CallStackTrieNode(AllocType); in addCallStack() 148 AllocationType AllocType) { in createMIBNode() argument 152 MDString::get(Ctx, getAllocTypeAttributeString(AllocType))); in createMIBNode()
|
| H A D | MemoryBuiltins.cpp | 54 enum AllocType : uint8_t { enum 104 AllocType AllocTy; 174 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction() 215 static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData() 225 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | alloc_function.pass.cpp | 30 template <class FuncType, class AllocType> 31 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() 54 template <class FuncType, class AllocType> 55 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() 76 template <class TargetType, class FuncType, class AllocType> 77 void test_MemFunClass(AllocType& alloc) in test_MemFunClass()
|
| H A D | alloc_F.pass.cpp | 43 template <class FuncType, class AllocType> 44 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() 63 template <class FuncType, class AllocType> 64 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() 82 template <class TargetType, class FuncType, class AllocType> 83 void test_MemFunClass(AllocType& alloc) in test_MemFunClass()
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.h | 32 enum AllocType { enum 81 AllocType alloc_type); 82 void memprof_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type); 84 BufferedStackTrace *stack, AllocType alloc_type);
|
| H A D | memprof_allocator.cpp | 341 AllocType alloc_type) { in Allocate() 438 BufferedStackTrace *stack, AllocType alloc_type) { in Deallocate() 587 void memprof_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) { in memprof_free() 592 BufferedStackTrace *stack, AllocType alloc_type) { in memprof_delete() 648 AllocType alloc_type) { in memprof_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.h | 20 enum AllocType : u8 { enum 45 u64 AllocType : 2; // malloc, new, new[], or memalign member 113 void *scudoAllocate(uptr Size, uptr Alignment, AllocType Type); 114 void scudoDeallocate(void *Ptr, uptr Size, uptr Alignment, AllocType Type);
|
| H A D | scudo_allocator.cpp | 303 allocate(uptr Size, uptr Alignment, AllocType Type, in allocate() 385 Header.AllocType = Type; in allocate() 448 AllocType Type) { in deallocate() 476 if (Header.AllocType != Type) { in deallocate() 478 if (Header.AllocType != FromMemalign || Type != FromMalloc) in deallocate() 518 if (UNLIKELY(OldHeader.AllocType != FromMalloc)) in reallocate() 702 void *scudoAllocate(uptr Size, uptr Alignment, AllocType Type) { in scudoAllocate() 712 void scudoDeallocate(void *Ptr, uptr Size, uptr Alignment, AllocType Type) { in scudoDeallocate()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_allocator.h | 26 enum AllocType { enum 67 AllocType GetAllocType() const; 207 AllocType alloc_type); 208 void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type); 210 BufferedStackTrace *stack, AllocType alloc_type);
|
| H A D | asan_report.h | 58 AllocType alloc_type, 59 AllocType dealloc_type);
|
| H A D | asan_allocator.cpp | 474 AllocType alloc_type, bool can_fill) { in Allocate() 665 BufferedStackTrace *stack, AllocType alloc_type) { in Deallocate() 689 ReportAllocTypeMismatch((uptr)ptr, stack, (AllocType)m->alloc_type, in Deallocate() 690 (AllocType)alloc_type); in Deallocate() 895 AllocType AsanChunkView::GetAllocType() const { in GetAllocType() 896 return (AllocType)chunk_->alloc_type; in GetAllocType() 943 void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) { in asan_free() 948 BufferedStackTrace *stack, AllocType alloc_type) { in asan_delete() 1005 AllocType alloc_type) { in asan_memalign()
|
| H A D | asan_errors.h | 113 AllocType alloc_type, dealloc_type; 118 AllocType alloc_type_, AllocType dealloc_type_) in ErrorAllocTypeMismatch()
|
| H A D | asan_report.cpp | 244 AllocType alloc_type, in ReportAllocTypeMismatch() 245 AllocType dealloc_type) { in ReportAllocTypeMismatch()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprCXX.cpp | 2020 if (AllocType.isNull()) in BuildCXXNew() 2054 AllocType = DeducedType; in BuildCXXNew() 2076 AllocType = Context.getLifetimeQualifiedType(AllocType, in BuildCXXNew() 2224 AllocType->isDependentType() ? 0 : Context.getTypeAlign(AllocType); in BuildCXXNew() 2337 << AllocType in BuildCXXNew() 2361 AllocType, in BuildCXXNew() 2369 InitType = AllocType; in BuildCXXNew() 2429 if (AllocType->isFunctionType()) in CheckAllocatedType() 2431 << AllocType << 0 << R; in CheckAllocatedType() 2434 << AllocType << 1 << R; in CheckAllocatedType() [all …]
|
| H A D | TreeTransform.h | 12148 QualType AllocType = AllocTypeInfo->getType(); in TransformCXXNewExpr() local 12155 const ArrayType *ArrayT = SemaRef.Context.getAsArrayType(AllocType); in TransformCXXNewExpr() 12163 AllocType = ConsArrayT->getElementType(); in TransformCXXNewExpr() 12168 AllocType = DepArrayT->getElementType(); in TransformCXXNewExpr() 12176 /*FIXME:*/ E->getBeginLoc(), E->getTypeIdParens(), AllocType, in TransformCXXNewExpr()
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | Memory.inc | 111 DWORD AllocType = MEM_RESERVE | MEM_COMMIT; 116 AllocType |= MEM_LARGE_PAGES; 136 AllocSize, AllocType, Protect);
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | MemoryProfileInfo.h | 93 void addCallStack(AllocationType AllocType, ArrayRef<uint64_t> StackIds);
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 958 QualType AllocType, Address NewPtr, in StoreAnyExprIntoOneUnit() argument 961 switch (CGF.getEvaluationKind(AllocType)) { in StoreAnyExprIntoOneUnit() 964 CGF.MakeAddrLValue(NewPtr, AllocType), false); in StoreAnyExprIntoOneUnit() 967 CGF.EmitComplexExprIntoLValue(Init, CGF.MakeAddrLValue(NewPtr, AllocType), in StoreAnyExprIntoOneUnit() 972 = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(), in StoreAnyExprIntoOneUnit() 1073 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer() local 1075 AllocType->getAsArrayTypeUnsafe())) { in EmitNewArrayInitializer() 1076 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 3415 AllocType.isNull() ? S->getType() : AllocType); in expandStringLiteral() 9529 QualType AllocType = E->getAllocatedType(); in VisitCXXNewExpr() local 9603 AllocType = Info.Ctx.getConstantArrayType(AllocType, ArrayBound, nullptr, in VisitCXXNewExpr() 9606 assert(!AllocType->isArrayType() && in VisitCXXNewExpr() 9616 QualType AllocType; in VisitCXXNewExpr() member 9627 SubobjType << AllocType; in VisitCXXNewExpr() 9662 ImplicitValueInitExpr VIE(AllocType); in VisitCXXNewExpr() 9667 AllocType)) in VisitCXXNewExpr() 10673 .VisitInitListExpr(ILE, AllocType); in EvaluateArrayNewInitList() 10706 AllocType.isNull() ? E->getType() : AllocType); in VisitInitListExpr() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 6575 QualType AllocType, 6590 bool CheckAllocatedType(QualType AllocType, SourceLocation Loc, 6610 QualType AllocType, bool IsArray,
|