Home
last modified time | relevance | path

Searched refs:FunctionSummary (Results 1 – 22 of 22) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h613 static FunctionSummary
615 return FunctionSummary(
616 FunctionSummary::GVFlags(
632 static FunctionSummary ExternalNode;
786 static bool isEqual(FunctionSummary::VFuncId L, FunctionSummary::VFuncId R) {
1160 FunctionSummary *F =
1320 if (const FunctionSummary *FS = dyn_cast<FunctionSummary>(Summary.get()))
1555 FunctionSummary *F =
1565 FunctionSummary *F =
1574 FunctionSummary *F =
[all …]
H A DModuleSummaryIndexYAML.h143 std::vector<FunctionSummary::VFuncId> TypeTestAssumeVCalls,
145 std::vector<FunctionSummary::ConstVCall> TypeTestAssumeConstVCalls,
155 template <> struct MappingTraits<FunctionSummary::VFuncId> {
156 static void mapping(IO &io, FunctionSummary::VFuncId& id) {
162 template <> struct MappingTraits<FunctionSummary::ConstVCall> {
163 static void mapping(IO &io, FunctionSummary::ConstVCall& id) {
172 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::VFuncId)
173 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::ConstVCall)
225 Elem.SummaryList.push_back(std::make_unique<FunctionSummary>(
237 ArrayRef<FunctionSummary::ParamAccess>{}));
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp66 FunctionSummary::FSHT_None;
67 cl::opt<FunctionSummary::ForceSummaryHotnessType, true> FSEC(
253 SetVector<FunctionSummary::VFuncId> TypeTestAssumeVCalls, in computeFunctionSummary()
461 FunctionSummary::FFlags FunFlags{ in computeFunctionSummary()
472 auto FuncSummary = std::make_unique<FunctionSummary>( in computeFunctionSummary()
705 std::unique_ptr<FunctionSummary> Summary = in buildModuleSummaryIndex()
706 std::make_unique<FunctionSummary>( in buildModuleSummaryIndex()
708 FunctionSummary::FFlags{ in buildModuleSummaryIndex()
716 ArrayRef<FunctionSummary::EdgeTy>{}, in buildModuleSummaryIndex()
718 ArrayRef<FunctionSummary::VFuncId>{}, in buildModuleSummaryIndex()
[all …]
H A DStackSafetyAnalysis.cpp625 if (!isa<FunctionSummary>(GVS->getBaseObject())) in findCalleeFunctionSummary()
656 if (FunctionSummary *FS = dyn_cast<FunctionSummary>(S)) in findCalleeFunctionSummary()
710 FunctionSummary *FS = in resolveAllCalls()
826 std::vector<FunctionSummary::ParamAccess>
1016 if (FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get())) in generateParamAccessSummary()
1022 std::map<const FunctionSummary *, FunctionInfo<FunctionSummary>> Functions; in generateParamAccessSummary()
1027 FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get()); in generateParamAccessSummary()
1031 FunctionInfo<FunctionSummary> FI; in generateParamAccessSummary()
1040 FunctionSummary *S = in generateParamAccessSummary()
1062 StackSafetyDataFlowAnalysis<FunctionSummary> SSDFA( in generateParamAccessSummary()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp41 auto *F = cast<FunctionSummary>(S); in initializeCounts()
53 auto GetCallSiteRelFreq = [](FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
59 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
70 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
76 auto GetProfileCount = [&](ValueInfo V, FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
H A DLTO.cpp220 if (auto *FS = dyn_cast<FunctionSummary>(GS)) { in computeLTOCacheKey()
979 auto *FS = dyn_cast<FunctionSummary>(S.get()); in checkPartiallySplit()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h34 class FunctionSummary {
52 FunctionSummary() in FunctionSummary() function
57 using MapTy = llvm::DenseMap<const Decl *, FunctionSummary>;
66 using KVPair = std::pair<const Decl *, FunctionSummary>; in findOrInsertSummary()
68 I = Map.insert(KVPair(D, FunctionSummary())).first; in findOrInsertSummary()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp38 constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth;
40 FunctionSummary FunctionSummary::ExternalNode =
41 FunctionSummary::makeDummyFunctionSummary({});
78 std::pair<unsigned, unsigned> FunctionSummary::specialRefCounts() const { in specialRefCounts()
152 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()
200 assert(VI.getAccessSpecifier() == 0 || isa<FunctionSummary>(S)); in propagateAttributesToRefs()
356 FunctionSummary *F = nullptr; in dumpSCCs()
358 F = cast<FunctionSummary>(V.getSummaryList().front().get()); in dumpSCCs()
447 static std::string fflagsToString(FunctionSummary::FFlags F) { in fflagsToString()
458 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS); in getSummaryAttributes()
[all …]
H A DAsmWriter.cpp2637 void printFunctionSummary(const FunctionSummary *FS);
2643 void printTypeIdInfo(const FunctionSummary::TypeIdInfo &TIDInfo);
2644 void printVFuncId(const FunctionSummary::VFuncId VFId);
2646 printNonConstVCalls(const std::vector<FunctionSummary::VFuncId> &VCallList,
2649 printConstVCalls(const std::vector<FunctionSummary::ConstVCall> &VCallList,
3199 void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) { in printFunctionSummary()
3202 FunctionSummary::FFlags FFlags = FS->fflags(); in printFunctionSummary()
3264 const FunctionSummary::TypeIdInfo &TIDInfo) { in printTypeIdInfo()
3309 void AssemblyWriter::printVFuncId(const FunctionSummary::VFuncId VFId) { in printVFuncId()
3343 const std::vector<FunctionSummary::ConstVCall> &VCallList, in printConstVCalls()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h340 bool parseOptionalFFlags(FunctionSummary::FFlags &FFlags);
341 bool parseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls);
343 bool parseOptionalTypeIdInfo(FunctionSummary::TypeIdInfo &TypeIdInfo);
346 std::vector<FunctionSummary::VFuncId> &VFuncIdList);
349 std::vector<FunctionSummary::ConstVCall> &ConstVCallList);
352 bool parseConstVCall(FunctionSummary::ConstVCall &ConstVCall,
354 bool parseVFuncId(FunctionSummary::VFuncId &VFuncId,
358 std::vector<FunctionSummary::ParamAccess> &Params);
361 bool parseParamAccess(FunctionSummary::ParamAccess &Param,
363 bool parseParamAccessCall(FunctionSummary::ParamAccess::Call &Call,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp213 auto *Summary = cast<FunctionSummary>(GVSummary->getBaseObject()); in selectCallee()
383 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
440 const FunctionSummary *ResolvedCalleeSummary = nullptr; in computeImportForFunction()
455 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
512 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
581 dyn_cast<FunctionSummary>(GVSummary.second->getBaseObject()); in ComputeImportForModule()
597 if (auto *FS = dyn_cast<FunctionSummary>(Summary)) in ComputeImportForModule()
617 FunctionSummary *FS = nullptr; in ComputeImportForModule()
619 FS = dyn_cast<FunctionSummary>( in ComputeImportForModule()
737 auto *FS = cast<FunctionSummary>(S); in ComputeCrossModuleImport()
[all …]
H A DWholeProgramDevirt.cpp434 std::vector<FunctionSummary *> SummaryTypeCheckedLoadUsers;
435 std::vector<FunctionSummary *> SummaryTypeTestAssumeUsers;
442 void addSummaryTypeCheckedLoadUser(FunctionSummary *FS) { in addSummaryTypeCheckedLoadUser()
447 void addSummaryTypeTestAssumeUser(FunctionSummary *FS) { in addSummaryTypeTestAssumeUser()
2088 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
2102 for (const FunctionSummary::ConstVCall &VC : in run()
2110 for (const FunctionSummary::ConstVCall &VC : in run()
2217 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
2221 for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) { in run()
2231 for (const FunctionSummary::ConstVCall &VC : in run()
[all …]
H A DLowerTypeTests.cpp2144 if (auto *FS = dyn_cast<FunctionSummary>(S->getBaseObject())) in lower()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DStackSafetyAnalysis.h54 std::vector<FunctionSummary::ParamAccess>
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DJITSymbol.cpp62 if (isa<FunctionSummary>(S)) in fromSummary()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp205 auto *FS = cast<FunctionSummary>(S->getBaseObject()); in processGlobalForThinLTO()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp804 std::vector<FunctionSummary::ParamAccess>
929 FunctionSummary::FFlags Flags; in getDecodedFFlags()
5938 std::vector<FunctionSummary::EdgeTy>
5942 std::vector<FunctionSummary::EdgeTy> Ret; in makeCallList()
6011 std::vector<FunctionSummary::ParamAccess>
6014 APInt Lower(FunctionSummary::ParamAccess::RangeWidth, in parseParamAccesses()
6017 APInt Upper(FunctionSummary::ParamAccess::RangeWidth, in parseParamAccesses()
6212 std::vector<FunctionSummary::EdgeTy> Calls = makeCallList( in parseEntireSummary()
6216 auto FS = std::make_unique<FunctionSummary>( in parseEntireSummary()
6354 std::vector<FunctionSummary::EdgeTy> Edges = makeCallList( in parseEntireSummary()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp8359 std::vector<FunctionSummary::EdgeTy> Calls; in parseFunctionSummary()
8360 FunctionSummary::TypeIdInfo TypeIdInfo; in parseFunctionSummary()
8361 std::vector<FunctionSummary::ParamAccess> ParamAccesses; in parseFunctionSummary()
8364 FunctionSummary::FFlags FFlags = {}; in parseFunctionSummary()
8405 auto FS = std::make_unique<FunctionSummary>( in parseFunctionSummary()
8841 FunctionSummary::ParamAccess::Call Call; in parseParamAccess()
8860 std::vector<FunctionSummary::ParamAccess> &Params) { in parseOptionalParamAccesses()
8871 FunctionSummary::ParamAccess ParamAccess; in parseOptionalParamAccesses()
8963 FunctionSummary::TypeIdInfo &TypeIdInfo) { in parseOptionalTypeIdInfo()
9065 FunctionSummary::VFuncId VFuncId; in parseVFuncIdList()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp97 extern FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold;
199 if (auto FS = dyn_cast<FunctionSummary>(Summary.get())) in ModuleBitcodeWriterBase()
1061 static uint64_t getEncodedFFlags(FunctionSummary::FFlags Flags) { in getEncodedFFlags()
3649 FunctionSummary *FS, in writeFunctionTypeMetadataRecords()
3657 ArrayRef<FunctionSummary::VFuncId> VFs) { in writeFunctionTypeMetadataRecords()
3724 getReferencedTypeIds(FunctionSummary *FS, in getReferencedTypeIds()
3731 [&](ArrayRef<FunctionSummary::VFuncId> VFs) { in getReferencedTypeIds()
3740 [&](ArrayRef<FunctionSummary::ConstVCall> VCs) { in getReferencedTypeIds()
3814 FunctionSummary *FS = cast<FunctionSummary>(Summary); in writePerModuleFunctionSummaryRecord()
4226 auto *FS = cast<FunctionSummary>(S); in writeCombinedGlobalValueSummary()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.cpp1344 const RetainSummary *FunctionSummary = SmrMgr.getSummary(*C); in checkBeginFunction() local
1345 ArgEffects CalleeSideArgEffects = FunctionSummary->getArgEffects(); in checkBeginFunction()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp380 if (auto *FuncSummary = dyn_cast<FunctionSummary>(Summary.get())) { in printIndexStats()
/freebsd-13.1/lib/clang/libclang/
H A DMakefile682 SRCS_FUL+= StaticAnalyzer/Core/FunctionSummary.cpp