Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp125 AllocationType AllocType) { in addAllocTypeAttribute() argument
126 auto AllocTypeString = getAllocTypeAttributeString(AllocType); in addAllocTypeAttribute()
137 void CallStackTrie::addCallStack(AllocationType AllocType, in addCallStack() argument
148 Alloc->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack()
152 Alloc = new CallStackTrieNode(AllocType, TotalSize); in addCallStack()
161 Curr->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack()
166 auto *New = new CallStackTrieNode(AllocType, TotalSize); in addCallStack()
188 AllocationType AllocType, uint64_t TotalSize) { in createMIBNode() argument
192 MDString::get(Ctx, getAllocTypeAttributeString(AllocType))); in createMIBNode()
H A DMemoryBuiltins.cpp60 enum AllocType : uint8_t { enum
106 AllocType AllocTy;
180 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction()
222 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData()
232 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData()
/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/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp311 uint8_t AllocType = (uint8_t)AllocationType::None; in computeAllocType() local
313 AllocType |= Edge->AllocTypes; in computeAllocType()
315 if (AllocType == BothTypes) in computeAllocType()
316 return AllocType; in computeAllocType()
318 return AllocType; in computeAllocType()
362 void addOrUpdateCallerEdge(ContextNode *Caller, AllocationType AllocType,
406 ContextEdge(ContextNode *Callee, ContextNode *Caller, uint8_t AllocType, in ContextEdge()
408 : Callee(Callee), Caller(Caller), AllocTypes(AllocType), in ContextEdge()
445 AllocationType AllocType, uint64_t TotalSize);
537 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.cpp1829 static bool hasNewExtendedAlignment(Sema &S, QualType AllocType) { in hasNewExtendedAlignment() argument
1831 S.getASTContext().getTypeAlignIfKnown(AllocType) > in hasNewExtendedAlignment()
1965 QualType AllocType = TInfo->getType(); in ActOnCXXNew() local
1975 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew()
2034 SourceRange TypeIdParens, QualType AllocType, in BuildCXXNew() argument
2086 auto *Deduced = AllocType->getContainedDeducedType(); in BuildCXXNew()
2097 = InitializedEntity::InitializeNew(StartLoc, AllocType); in BuildCXXNew()
2098 AllocType = DeduceTemplateSpecializationFromInitializer( in BuildCXXNew()
2100 if (AllocType.isNull()) in BuildCXXNew()
2112 << AllocType << TypeRange); in BuildCXXNew()
[all …]
H A DTreeTransform.h13428 QualType AllocType = AllocTypeInfo->getType(); in TransformCXXNewExpr() local
13435 const ArrayType *ArrayT = SemaRef.Context.getAsArrayType(AllocType); in TransformCXXNewExpr()
13443 AllocType = ConsArrayT->getElementType(); in TransformCXXNewExpr()
13448 AllocType = DepArrayT->getElementType(); in TransformCXXNewExpr()
13456 /*FIXME:*/ E->getBeginLoc(), E->getTypeIdParens(), AllocType, in TransformCXXNewExpr()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp529 AllocType alloc_type, bool can_fill) { in Allocate()
704 BufferedStackTrace *stack, AllocType alloc_type) { in Deallocate()
736 ReportAllocTypeMismatch((uptr)ptr, stack, (AllocType)m->alloc_type, in Deallocate()
737 (AllocType)alloc_type); in Deallocate()
950 AllocType AsanChunkView::GetAllocType() const { in GetAllocType()
951 return (AllocType)chunk_->alloc_type; in GetAllocType()
998 void asan_free(void *ptr, BufferedStackTrace *stack, AllocType alloc_type) { in asan_free()
1003 BufferedStackTrace *stack, AllocType alloc_type) { in asan_delete()
1060 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.cpp245 AllocType alloc_type, in ReportAllocTypeMismatch()
246 AllocType dealloc_type) { in ReportAllocTypeMismatch()
/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/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp714 auto AllocType = getAllocType(AllocInfo->Info.getTotalLifetimeAccessDensity(), in addCallStack() local
722 AllocTrie.addCallStack(AllocType, StackIds, TotalSize); in addCallStack()
723 return AllocType; in addCallStack()
781 AllocationType AllocType = AllocationType::None; member
955 auto AllocType = addCallStack(AllocTrie, AllocInfo); in readMemprof() local
961 AllocInfo->Info.getTotalSize(), AllocType, /*Matched=*/true}; in readMemprof()
1058 errs() << "MemProf " << getAllocTypeAttributeString(Info.AllocType) in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryProfileInfo.h98 void addCallStack(AllocationType AllocType, ArrayRef<uint64_t> StackIds,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp968 QualType AllocType, Address NewPtr, in StoreAnyExprIntoOneUnit() argument
971 switch (CGF.getEvaluationKind(AllocType)) { in StoreAnyExprIntoOneUnit()
974 CGF.MakeAddrLValue(NewPtr, AllocType), false); in StoreAnyExprIntoOneUnit()
977 CGF.EmitComplexExprIntoLValue(Init, CGF.MakeAddrLValue(NewPtr, AllocType), in StoreAnyExprIntoOneUnit()
982 = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(), in StoreAnyExprIntoOneUnit()
1099 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer() local
1101 AllocType->getAsArrayTypeUnsafe())) { in EmitNewArrayInitializer()
1102 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h366 AllocationType AllocType;
374 MIBInfo(AllocationType AllocType, SmallVector<unsigned> StackIdIndices)
375 : AllocType(AllocType), StackIdIndices(std::move(StackIdIndices)) {}
379 OS << "AllocType " << (unsigned)MIB.AllocType;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp3494 QualType AllocType = QualType()) { in expandStringLiteral() argument
3496 AllocType.isNull() ? S->getType() : AllocType); in expandStringLiteral()
6873 QualType AllocType = Info.Ctx.getConstantArrayType( in HandleOperatorNewCall() local
6875 APValue *Val = Info.createHeapAlloc(E, AllocType, Result); in HandleOperatorNewCall()
6877 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall()
6923 QualType AllocType = Pointer.Base.getDynamicAllocType(); in CheckDeleteKind() local
6925 << DeallocKind << (*Alloc)->getKind() << AllocType; in CheckDeleteKind()
9885 QualType AllocType);
9889 QualType AllocType);
9942 QualType AllocType = E->getAllocatedType(); in VisitCXXNewExpr() local
[all …]
/freebsd/sys/contrib/dev/acpica/include/
H A Daclocal.h1604 UINT8 AllocType;
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h440 bool parseAllocType(uint8_t &AllocType);
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp10500 uint8_t AllocType; in parseMemProfs() local
10501 if (parseAllocType(AllocType)) in parseMemProfs()
10521 MIBs.push_back({(AllocationType)AllocType, StackIdIndices}); in parseMemProfs()
10535 bool LLParser::parseAllocType(uint8_t &AllocType) { in parseAllocType() argument
10538 AllocType = (uint8_t)AllocationType::None; in parseAllocType()
10541 AllocType = (uint8_t)AllocationType::NotCold; in parseAllocType()
10544 AllocType = (uint8_t)AllocationType::Cold; in parseAllocType()
10547 AllocType = (uint8_t)AllocationType::Hot; in parseAllocType()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp8003 AllocationType AllocType = (AllocationType)Record[I++]; in parseEntireSummary() local
8012 MIBs.push_back(MIBInfo(AllocType, std::move(StackIdList))); in parseEntireSummary()
8038 AllocationType AllocType = (AllocationType)Record[I++]; in parseEntireSummary() local
8047 MIBs.push_back(MIBInfo(AllocType, std::move(StackIdList))); in parseEntireSummary()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h8153 SourceRange TypeIdParens, QualType AllocType,
8168 bool CheckAllocatedType(QualType AllocType, SourceLocation Loc,
8188 QualType AllocType, bool IsArray,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAsmWriter.cpp3403 Out << "(type: " << AllocTypeName((uint8_t)MIB.AllocType); in printFunctionSummary()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp4198 Record.push_back((uint8_t)MIB.AllocType); in writeFunctionHeapProfileRecords()