Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryProfileInfo.h82 void addAllocType(AllocationType AllocType) { in addAllocType()
83 AllocTypes |= static_cast<uint8_t>(AllocType); in addAllocType()
85 void removeAllocType(AllocationType AllocType) { in removeAllocType()
86 AllocTypes &= ~static_cast<uint8_t>(AllocType); in removeAllocType()
88 bool hasAllocType(AllocationType AllocType) const { in hasAllocType()
89 return AllocTypes & static_cast<uint8_t>(AllocType); in hasAllocType()
144 addCallStack(AllocationType AllocType, ArrayRef<uint64_t> StackIds,
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h32 enum AllocType { enum
85 AllocType alloc_type);
86 void memprof_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type);
88 BufferedStackTrace *stack, AllocType alloc_type);
H A Dmemprof_allocator.cpp409 AllocType alloc_type) { in Allocate()
506 BufferedStackTrace *stack, AllocType alloc_type) { in Deallocate()
652 void memprof_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) { in memprof_free()
657 BufferedStackTrace *stack, AllocType alloc_type) { in memprof_delete()
713 AllocType alloc_type) { in memprof_memalign()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.h26 enum AllocType { enum
68 AllocType GetAllocType() const;
274 AllocType alloc_type);
275 void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type);
277 BufferedStackTrace *stack, AllocType alloc_type);
H A Dasan_report.h59 AllocType alloc_type,
60 AllocType dealloc_type);
H A Dasan_allocator.cpp535 AllocType alloc_type, bool can_fill) { in Allocate()
710 BufferedStackTrace *stack, AllocType alloc_type) { in Deallocate()
743 ReportAllocTypeMismatch((uptr)ptr, stack, (AllocType)m->alloc_type, in Deallocate()
744 (AllocType)alloc_type); in Deallocate()
957 AllocType AsanChunkView::GetAllocType() const { in GetAllocType()
958 return (AllocType)chunk_->alloc_type; in GetAllocType()
1010 void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) { in asan_free()
1015 BufferedStackTrace *stack, AllocType alloc_type) { in asan_delete()
1072 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.cpp273 AllocType alloc_type, in ReportAllocTypeMismatch()
274 AllocType dealloc_type) { in ReportAllocTypeMismatch()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp125 AllocationType AllocType, ArrayRef<uint64_t> StackIds, in addCallStack() argument
135 Alloc->addAllocType(AllocType); in addCallStack()
138 Alloc = new CallStackTrieNode(AllocType); in addCallStack()
147 Curr->addAllocType(AllocType); in addCallStack()
151 auto *New = new CallStackTrieNode(AllocType); in addCallStack()
188 AllocationType AllocType, in createMIBNode() argument
195 MDString::get(Ctx, getAllocTypeAttributeString(AllocType))); in createMIBNode()
208 if (AllocType == AllocationType::Cold) { in createMIBNode()
H A DMemoryBuiltins.cpp59 enum AllocType : uint8_t { enum
105 AllocType AllocTy;
177 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction()
219 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData()
227 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProfSummaryBuilder.cpp31 auto AllocType = getAllocType(Info.getTotalLifetimeAccessDensity(), in addRecord() local
34 switch (AllocType) { in addRecord()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfUse.cpp122 auto AllocType = getAllocType(AllocInfo->Info.getTotalLifetimeAccessDensity(), in addCallStack() local
132 AllocTrie.addCallStack(AllocType, StackIds, std::move(ContextSizeInfo)); in addCallStack()
133 return AllocType; in addCallStack()
186 AllocationType AllocType = AllocationType::None; member
573 auto AllocType = addCallStack(AllocTrie, AllocInfo, FullStackId); in readMemprof() local
575 if (AllocType == AllocationType::Cold) in readMemprof()
583 AllocInfo->Info.getTotalSize(), AllocType}; in readMemprof()
725 errs() << "MemProf " << getAllocTypeAttributeString(Info.AllocType) in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp392 uint8_t AllocType = (uint8_t)AllocationType::None; in computeAllocType() local
398 AllocType |= Edge->AllocTypes; in computeAllocType()
400 if (AllocType == BothTypes) in computeAllocType()
401 return AllocType; in computeAllocType()
403 return AllocType; in computeAllocType()
448 void addOrUpdateCallerEdge(ContextNode *Caller, AllocationType AllocType,
505 ContextEdge(ContextNode *Callee, ContextNode *Caller, uint8_t AllocType, in ContextEdge()
507 : Callee(Callee), Caller(Caller), AllocTypes(AllocType), in ContextEdge()
568 AllocationType AllocType,
713 void updateAllocationCall(CallInfo &Call, AllocationType AllocType) { in updateAllocationCall() argument
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Duttrack.c182 UINT8 AllocType,
515 UINT8 AllocType, in AcpiUtTrackAllocation() argument
556 Allocation->AllocType = AllocType; in AcpiUtTrackAllocation()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprCXX.cpp1749 UsualDeallocFnInfo(Sema &S, DeclAccessPair Found, QualType AllocType, in UsualDeallocFnInfo()
1753 IDP({AllocType, TypeAwareAllocationMode::No, in UsualDeallocFnInfo()
1759 if (AllocType.isNull())
1765 S.BuildTypeAwareUsualDelete(FTD, AllocType, Loc);
1777 if (AllocType.isNull()) {
1783 S.tryBuildStdTypeIdentity(AllocType, Loc);
1894 static bool hasNewExtendedAlignment(Sema &S, QualType AllocType) { in hasNewExtendedAlignment() argument
1896 S.getASTContext().getTypeAlignIfKnown(AllocType) > in hasNewExtendedAlignment()
2064 QualType AllocType = TInfo->getType(); in ActOnCXXNew() local
2074 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DMemory.inc109 DWORD AllocType = MEM_RESERVE | MEM_COMMIT;
114 AllocType |= MEM_LARGE_PAGES;
134 AllocType, Protect);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp973 QualType AllocType, Address NewPtr, in StoreAnyExprIntoOneUnit() argument
976 switch (CGF.getEvaluationKind(AllocType)) { in StoreAnyExprIntoOneUnit()
979 CGF.MakeAddrLValue(NewPtr, AllocType), false); in StoreAnyExprIntoOneUnit()
982 CGF.EmitComplexExprIntoLValue(Init, CGF.MakeAddrLValue(NewPtr, AllocType), in StoreAnyExprIntoOneUnit()
987 = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(), in StoreAnyExprIntoOneUnit()
1104 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer() local
1106 AllocType->getAsArrayTypeUnsafe())) { in EmitNewArrayInitializer()
1107 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp1241 QualType AllocType = Ptr.getType(); in Free() local
1250 getVirtualOperatorDelete(AllocType); in Free()
1811 QualType AllocType; in CheckNewTypeMismatch() local
1813 AllocType = ASTCtx.getConstantArrayType( in CheckNewTypeMismatch()
1818 AllocType = NewExpr->getAllocatedType(); in CheckNewTypeMismatch()
1823 if (const auto *CAT = dyn_cast<ConstantArrayType>(AllocType)) in CheckNewTypeMismatch()
1829 !ASTCtx.hasSimilarType(ASTCtx.getBaseElementType(AllocType), in CheckNewTypeMismatch()
1833 << StorageType << AllocType; in CheckNewTypeMismatch()
H A DInterpState.h38 QualType AllocType; member
H A DInterpBuiltin.cpp1561 QualType AllocType = S.getASTContext().getConstantArrayType( in interp__builtin_operator_new() local
1565 S.P.createDescriptor(NewCall, AllocType.getTypePtr(), in interp__builtin_operator_new()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h369 AllocationType AllocType;
377 MIBInfo(AllocationType AllocType, SmallVector<unsigned> StackIdIndices)
378 : AllocType(AllocType), StackIdIndices(std::move(StackIdIndices)) {}
382 OS << "AllocType " << (unsigned)MIB.AllocType;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp3710 QualType AllocType = QualType()) { in expandStringLiteral() argument
3712 AllocType.isNull() ? S->getType() : AllocType); in expandStringLiteral()
7181 QualType AllocType = Info.Ctx.getConstantArrayType( in HandleOperatorNewCall() local
7183 APValue *Val = Info.createHeapAlloc(Caller.Call, AllocType, Result); in HandleOperatorNewCall()
7185 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall()
7231 QualType AllocType = Pointer.Base.getDynamicAllocType(); in CheckDeleteKind() local
7233 << DeallocKind << (*Alloc)->getKind() << AllocType; in CheckDeleteKind()
10304 QualType AllocType);
10308 QualType AllocType);
10319 QualType AllocType = E->getAllocatedType(); in VisitCXXNewExpr() local
[all …]
/freebsd/sys/contrib/dev/acpica/include/
H A Daclocal.h1605 UINT8 AllocType;
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h444 bool parseAllocType(uint8_t &AllocType);
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp10828 uint8_t AllocType; in parseMemProfs() local
10829 if (parseAllocType(AllocType)) in parseMemProfs()
10852 MIBs.push_back({(AllocationType)AllocType, StackIdIndices}); in parseMemProfs()
10866 bool LLParser::parseAllocType(uint8_t &AllocType) { in parseAllocType() argument
10869 AllocType = (uint8_t)AllocationType::None; in parseAllocType()
10872 AllocType = (uint8_t)AllocationType::NotCold; in parseAllocType()
10875 AllocType = (uint8_t)AllocationType::Cold; in parseAllocType()
10878 AllocType = (uint8_t)AllocationType::Hot; in parseAllocType()

12