Home
last modified time | relevance | path

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

12

/external/llvm-project/llvm/include/llvm/IR/
DModuleSummaryIndex.h492 class FunctionSummary : public GlobalValueSummary {
592 static FunctionSummary
593 makeDummyFunctionSummary(std::vector<FunctionSummary::EdgeTy> Edges) {
594 return FunctionSummary(
595 FunctionSummary::GVFlags(
599 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0,
602 std::vector<FunctionSummary::VFuncId>(),
603 std::vector<FunctionSummary::VFuncId>(),
604 std::vector<FunctionSummary::ConstVCall>(),
605 std::vector<FunctionSummary::ConstVCall>(),
[all …]
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)
224 Elem.SummaryList.push_back(std::make_unique<FunctionSummary>(
229 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0, Refs,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h491 class FunctionSummary : public GlobalValueSummary {
557 static FunctionSummary
558 makeDummyFunctionSummary(std::vector<FunctionSummary::EdgeTy> Edges) {
559 return FunctionSummary(
560 FunctionSummary::GVFlags(
564 /*InsCount=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0,
567 std::vector<FunctionSummary::VFuncId>(),
568 std::vector<FunctionSummary::VFuncId>(),
569 std::vector<FunctionSummary::ConstVCall>(),
570 std::vector<FunctionSummary::ConstVCall>());
[all …]
DModuleSummaryIndexYAML.h142 std::vector<FunctionSummary::VFuncId> TypeTestAssumeVCalls,
144 std::vector<FunctionSummary::ConstVCall> TypeTestAssumeConstVCalls,
154 template <> struct MappingTraits<FunctionSummary::VFuncId> {
155 static void mapping(IO &io, FunctionSummary::VFuncId& id) {
161 template <> struct MappingTraits<FunctionSummary::ConstVCall> {
162 static void mapping(IO &io, FunctionSummary::ConstVCall& id) {
171 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::VFuncId)
172 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::ConstVCall)
223 Elem.SummaryList.push_back(std::make_unique<FunctionSummary>(
227 /*NumInsts=*/0, FunctionSummary::FFlags{}, /*EntryCount=*/0, Refs,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp64 FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold =
65 FunctionSummary::FSHT_None;
66 cl::opt<FunctionSummary::ForceSummaryHotnessType, true> FSEC(
69 cl::values(clEnumValN(FunctionSummary::FSHT_None, "none", "None."),
70 clEnumValN(FunctionSummary::FSHT_AllNonCritical,
72 clEnumValN(FunctionSummary::FSHT_All, "all", "All edges.")));
144 SetVector<FunctionSummary::VFuncId> &VCalls, in addVCallToSet()
145 SetVector<FunctionSummary::ConstVCall> &ConstVCalls) { in addVCallToSet()
163 SetVector<FunctionSummary::VFuncId> &TypeTestAssumeVCalls, in addIntrinsicToSummary()
164 SetVector<FunctionSummary::VFuncId> &TypeCheckedLoadVCalls, in addIntrinsicToSummary()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp64 FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold =
65 FunctionSummary::FSHT_None;
66 cl::opt<FunctionSummary::ForceSummaryHotnessType, true> FSEC(
69 cl::values(clEnumValN(FunctionSummary::FSHT_None, "none", "None."),
70 clEnumValN(FunctionSummary::FSHT_AllNonCritical,
72 clEnumValN(FunctionSummary::FSHT_All, "all", "All edges.")));
144 SetVector<FunctionSummary::VFuncId> &VCalls, in addVCallToSet()
145 SetVector<FunctionSummary::ConstVCall> &ConstVCalls) { in addVCallToSet()
163 SetVector<FunctionSummary::VFuncId> &TypeTestAssumeVCalls, in addIntrinsicToSummary()
164 SetVector<FunctionSummary::VFuncId> &TypeCheckedLoadVCalls, in addIntrinsicToSummary()
[all …]
DStackSafetyAnalysis.cpp612 FunctionSummary *findCalleeFunctionSummary(ValueInfo VI, StringRef ModuleId) { in findCalleeFunctionSummary()
623 if (!isa<FunctionSummary>(GVS->getBaseObject())) in findCalleeFunctionSummary()
654 if (FunctionSummary *FS = dyn_cast<FunctionSummary>(S)) in findCalleeFunctionSummary()
682 const ConstantRange *findParamAccess(const FunctionSummary &FS, in findParamAccess()
708 FunctionSummary *FS = in resolveAllCalls()
824 std::vector<FunctionSummary::ParamAccess>
828 std::vector<FunctionSummary::ParamAccess> ParamAccesses; in getParamAccesses()
838 FunctionSummary::ParamAccess &Param = ParamAccesses.back(); in getParamAccesses()
855 for (FunctionSummary::ParamAccess &Param : ParamAccesses) { in getParamAccesses()
856 sort(Param.Calls, [](const FunctionSummary::ParamAccess::Call &L, in getParamAccesses()
[all …]
/external/llvm-project/llvm/lib/LTO/
DSummaryBasedOptimizations.cpp39 auto *F = cast<FunctionSummary>(S); in initializeCounts()
51 auto GetCallSiteRelFreq = [](FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
57 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
68 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
74 auto GetProfileCount = [&](ValueInfo V, FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DSummaryBasedOptimizations.cpp39 auto *F = cast<FunctionSummary>(S); in initializeCounts()
51 auto GetCallSiteRelFreq = [](FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
57 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
68 auto *F = cast<FunctionSummary>(S); in computeSyntheticCounts()
74 auto GetProfileCount = [&](ValueInfo V, FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
/external/llvm-project/llvm/lib/IR/
DModuleSummaryIndex.cpp38 constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth;
40 FunctionSummary FunctionSummary::ExternalNode =
41 FunctionSummary::makeDummyFunctionSummary({});
62 std::pair<unsigned, unsigned> FunctionSummary::specialRefCounts() const { in specialRefCounts()
130 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()
178 assert(VI.getAccessSpecifier() == 0 || isa<FunctionSummary>(S)); in propagateAttributesToRefs()
321 FunctionSummary *F = nullptr; in dumpSCCs()
323 F = cast<FunctionSummary>(V.getSummaryList().front().get()); in dumpSCCs()
412 static std::string fflagsToString(FunctionSummary::FFlags F) { in fflagsToString()
423 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS); in getSummaryAttributes()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DFunctionSummary.h32 class FunctionSummary {
50 FunctionSummary() : in FunctionSummary() function
56 typedef llvm::DenseMap<const Decl *, FunctionSummary> MapTy;
65 typedef std::pair<const Decl *, FunctionSummary> KVPair; in findOrInsertSummary()
66 I = Map.insert(KVPair(D, FunctionSummary())).first; in findOrInsertSummary()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DModuleSummaryIndex.cpp34 FunctionSummary FunctionSummary::ExternalNode =
35 FunctionSummary::makeDummyFunctionSummary({});
56 std::pair<unsigned, unsigned> FunctionSummary::specialRefCounts() const { in specialRefCounts()
78 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()
124 assert(VI.getAccessSpecifier() == 0 || isa<FunctionSummary>(S)); in propagateAttributesToRefs()
248 FunctionSummary *F = nullptr; in dumpSCCs()
250 F = cast<FunctionSummary>(V.getSummaryList().front().get()); in dumpSCCs()
339 static std::string fflagsToString(FunctionSummary::FFlags F) { in fflagsToString()
350 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS); in getSummaryAttributes()
474 if (isa<FunctionSummary>(SummaryIt.second)) { in exportToDot()
[all …]
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp143 if (auto *FuncSummary = dyn_cast<FunctionSummary>(&Summary)) { in eligibleForImport()
145 FuncSummary->calls(), [&](const FunctionSummary::EdgeTy &Edge) { in eligibleForImport()
186 auto *Summary = cast<FunctionSummary>(GVSummary); in selectCallee()
260 using EdgeInfo = std::pair<const FunctionSummary *, unsigned /* Threshold */>;
266 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
286 const FunctionSummary *ResolvedCalleeSummary; in computeImportForFunction()
288 ResolvedCalleeSummary = cast<FunctionSummary>( in computeImportForFunction()
294 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
350 auto *FuncSummary = dyn_cast<FunctionSummary>(Summary); in ComputeImportForModule()
/external/llvm-project/llvm/lib/AsmParser/
DLLParser.h349 bool parseOptionalFFlags(FunctionSummary::FFlags &FFlags);
350 bool parseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls);
352 bool parseOptionalTypeIdInfo(FunctionSummary::TypeIdInfo &TypeIdInfo);
355 std::vector<FunctionSummary::VFuncId> &VFuncIdList);
358 std::vector<FunctionSummary::ConstVCall> &ConstVCallList);
361 bool parseConstVCall(FunctionSummary::ConstVCall &ConstVCall,
363 bool parseVFuncId(FunctionSummary::VFuncId &VFuncId,
367 std::vector<FunctionSummary::ParamAccess> &Params);
370 bool parseParamAccess(FunctionSummary::ParamAccess &Param,
372 bool parseParamAccessCall(FunctionSummary::ParamAccess::Call &Call,
/external/llvm-project/llvm/lib/Transforms/IPO/
DFunctionImport.cpp215 auto *Summary = cast<FunctionSummary>(GVSummary->getBaseObject()); in selectCallee()
362 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
416 const FunctionSummary *ResolvedCalleeSummary = nullptr; in computeImportForFunction()
431 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
477 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
546 dyn_cast<FunctionSummary>(GVSummary.second->getBaseObject()); in ComputeImportForModule()
562 if (auto *FS = dyn_cast<FunctionSummary>(Summary)) in ComputeImportForModule()
582 FunctionSummary *FS = nullptr; in ComputeImportForModule()
584 FS = dyn_cast<FunctionSummary>( in ComputeImportForModule()
702 auto *FS = cast<FunctionSummary>(S); in ComputeCrossModuleImport()
[all …]
DWholeProgramDevirt.cpp426 std::vector<FunctionSummary *> SummaryTypeCheckedLoadUsers;
427 std::vector<FunctionSummary *> SummaryTypeTestAssumeUsers;
434 void addSummaryTypeCheckedLoadUser(FunctionSummary *FS) { in addSummaryTypeCheckedLoadUser()
439 void addSummaryTypeTestAssumeUser(FunctionSummary *FS) { in addSummaryTypeTestAssumeUser()
2027 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
2031 for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) { in run()
2036 for (FunctionSummary::VFuncId VF : FS->type_checked_load_vcalls()) { in run()
2041 for (const FunctionSummary::ConstVCall &VC : in run()
2049 for (const FunctionSummary::ConstVCall &VC : in run()
2156 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp215 auto *Summary = cast<FunctionSummary>(GVSummary->getBaseObject()); in selectCallee()
264 using EdgeInfo = std::tuple<const FunctionSummary *, unsigned /* Threshold */,
285 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForReferencedGlobals()
363 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
417 const FunctionSummary *ResolvedCalleeSummary = nullptr; in computeImportForFunction()
432 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
478 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
560 dyn_cast<FunctionSummary>(GVSummary.second->getBaseObject()); in ComputeImportForModule()
592 FunctionSummary *FS = nullptr; in ComputeImportForModule()
594 FS = dyn_cast<FunctionSummary>( in ComputeImportForModule()
[all …]
DWholeProgramDevirt.cpp380 std::vector<FunctionSummary *> SummaryTypeCheckedLoadUsers;
381 std::vector<FunctionSummary *> SummaryTypeTestAssumeUsers;
388 void addSummaryTypeCheckedLoadUser(FunctionSummary *FS) { in addSummaryTypeCheckedLoadUser()
393 void addSummaryTypeTestAssumeUser(FunctionSummary *FS) { in addSummaryTypeTestAssumeUser()
1834 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
1838 for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) { in run()
1843 for (FunctionSummary::VFuncId VF : FS->type_checked_load_vcalls()) { in run()
1848 for (const FunctionSummary::ConstVCall &VC : in run()
1856 for (const FunctionSummary::ConstVCall &VC : in run()
1955 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.h356 bool ParseOptionalFFlags(FunctionSummary::FFlags &FFlags);
357 bool ParseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls);
359 bool ParseOptionalTypeIdInfo(FunctionSummary::TypeIdInfo &TypeIdInfo);
362 std::vector<FunctionSummary::VFuncId> &VFuncIdList);
365 std::vector<FunctionSummary::ConstVCall> &ConstVCallList);
368 bool ParseConstVCall(FunctionSummary::ConstVCall &ConstVCall,
370 bool ParseVFuncId(FunctionSummary::VFuncId &VFuncId,
/external/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp99 std::unique_ptr<FunctionSummary> FuncSummary = in computeFunctionSummary()
100 llvm::make_unique<FunctionSummary>(Flags, NumInsts); in computeFunctionSummary()
/external/clang/lib/StaticAnalyzer/Core/
DCMakeLists.txt29 FunctionSummary.cpp
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCMakeLists.txt32 FunctionSummary.cpp
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Core/
DBUILD.gn41 "FunctionSummary.cpp",
/external/llvm/lib/IR/
DModuleSummaryIndex.cpp75 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()

12