Home
last modified time | relevance | path

Searched refs:AllocType (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp88 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 DMemoryBuiltins.cpp54 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 Dalloc_function.pass.cpp30 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 Dalloc_F.pass.cpp43 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 Dmemprof_allocator.h32 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 Dmemprof_allocator.cpp341 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 Dscudo_allocator.h20 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 Dscudo_allocator.cpp303 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 Dasan_allocator.h26 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 Dasan_report.h58 AllocType alloc_type,
59 AllocType dealloc_type);
H A Dasan_allocator.cpp474 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 Dasan_errors.h113 AllocType alloc_type, dealloc_type;
118 AllocType alloc_type_, AllocType dealloc_type_) in ErrorAllocTypeMismatch()
H A Dasan_report.cpp244 AllocType alloc_type, in ReportAllocTypeMismatch()
245 AllocType dealloc_type) { in ReportAllocTypeMismatch()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprCXX.cpp2020 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 DTreeTransform.h12148 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 DMemory.inc111 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 DMemoryProfileInfo.h93 void addCallStack(AllocationType AllocType, ArrayRef<uint64_t> StackIds);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprCXX.cpp958 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 DExprConstant.cpp3415 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 DSema.h6575 QualType AllocType,
6590 bool CheckAllocatedType(QualType AllocType, SourceLocation Loc,
6610 QualType AllocType, bool IsArray,