Home
last modified time | relevance | path

Searched refs:ProfileSummary (Results 1 – 25 of 172) sorted by relevance

1234567

/external/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp73 APInt D(128, ProfileSummary::Scale); in computeDetailedSummary()
91 std::unique_ptr<ProfileSummary> SampleProfileSummaryBuilder::getSummary() { in getSummary()
93 return llvm::make_unique<ProfileSummary>( in getSummary()
94 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
98 std::unique_ptr<ProfileSummary> InstrProfSummaryBuilder::getSummary() { in getSummary()
100 return llvm::make_unique<ProfileSummary>( in getSummary()
101 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp76 APInt D(128, ProfileSummary::Scale); in computeDetailedSummary()
94 std::unique_ptr<ProfileSummary> SampleProfileSummaryBuilder::getSummary() { in getSummary()
96 return std::make_unique<ProfileSummary>( in getSummary()
97 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
101 std::unique_ptr<ProfileSummary> InstrProfSummaryBuilder::getSummary() { in getSummary()
103 return std::make_unique<ProfileSummary>( in getSummary()
104 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/llvm-project/llvm/unittests/IR/
DModuleTest.cpp94 !0 = !{i32 1, !"ProfileSummary", !1}
114 auto *PS = ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false)); in TEST()
118 M->setProfileSummary(PS->getMD(Context), ProfileSummary::PSK_Sample); in TEST()
120 PS = ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false)); in TEST()
130 !0 = !{i32 1, !"ProfileSummary", !1} in TEST()
157 std::unique_ptr<ProfileSummary> ProfileSummary( in TEST() local
158 ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false))); in TEST()
159 EXPECT_EQ(Ratio, ProfileSummary->getPartialProfileRatio()); in TEST()
/external/llvm-project/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp89 APInt D(128, ProfileSummary::Scale); in computeDetailedSummary()
107 std::unique_ptr<ProfileSummary> SampleProfileSummaryBuilder::getSummary() { in getSummary()
109 return std::make_unique<ProfileSummary>( in getSummary()
110 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
114 std::unique_ptr<ProfileSummary> InstrProfSummaryBuilder::getSummary() { in getSummary()
116 return std::make_unique<ProfileSummary>( in getSummary()
117 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/llvm/lib/IR/
DProfileSummary.cpp25 const char *ProfileSummary::KindStr[2] = {"InstrProf", "SampleProfile"};
50 Metadata *ProfileSummary::getDetailedSummaryMD(LLVMContext &Context) { in getDetailedSummaryMD()
71 Metadata *ProfileSummary::getMD(LLVMContext &Context) { in getMD()
146 ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) { in getFromMD()
156 ProfileSummary::Kind SummaryKind; in getFromMD()
188 return new ProfileSummary(SummaryKind, Summary, TotalCount, MaxCount, in getFromMD()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DProfileSummaryInfo.h32 class ProfileSummary; variable
46 std::unique_ptr<ProfileSummary> Summary;
76 Summary->getKind() == ProfileSummary::PSK_Sample; in hasSampleProfile()
82 Summary->getKind() == ProfileSummary::PSK_Instr; in hasInstrumentationProfile()
88 Summary->getKind() == ProfileSummary::PSK_CSInstr; in hasCSInstrumentationProfile()
/external/llvm-project/llvm/lib/IR/
DProfileSummary.cpp56 Metadata *ProfileSummary::getDetailedSummaryMD(LLVMContext &Context) { in getDetailedSummaryMD()
81 Metadata *ProfileSummary::getMD(LLVMContext &Context, bool AddPartialField, in getMD()
195 ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) { in getFromMD()
202 ProfileSummary::Kind SummaryKind; in getFromMD()
246 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount, in getFromMD()
252 void ProfileSummary::printSummary(raw_ostream &OS) { in printSummary()
260 void ProfileSummary::printDetailedSummary(raw_ostream &OS) { in printDetailedSummary()
DModule.cpp578 void Module::setProfileSummary(Metadata *M, ProfileSummary::Kind Kind) { in setProfileSummary()
579 if (Kind == ProfileSummary::PSK_CSInstr) in setProfileSummary()
680 std::unique_ptr<ProfileSummary> ProfileSummary( in setPartialSampleProfileRatio() local
681 ProfileSummary::getFromMD(SummaryMD)); in setPartialSampleProfileRatio()
682 if (ProfileSummary) { in setPartialSampleProfileRatio()
683 if (ProfileSummary->getKind() != ProfileSummary::PSK_Sample || in setPartialSampleProfileRatio()
684 !ProfileSummary->isPartialProfile()) in setPartialSampleProfileRatio()
687 uint32_t NumCounts = ProfileSummary->getNumCounts(); in setPartialSampleProfileRatio()
691 ProfileSummary->setPartialProfileRatio(Ratio); in setPartialSampleProfileRatio()
692 setProfileSummary(ProfileSummary->getMD(getContext()), in setPartialSampleProfileRatio()
[all …]
/external/llvm/unittests/ProfileData/
DSampleProfTest.cpp114 auto VerifySummary = [](ProfileSummary &Summary) mutable { in testRoundTrip()
115 ASSERT_EQ(ProfileSummary::PSK_Sample, Summary.getKind()); in testRoundTrip()
142 ProfileSummary &Summary = Reader->getSummary(); in testRoundTrip()
148 ProfileSummary *PS = ProfileSummary::getFromMD(MD); in testRoundTrip()
158 PS = ProfileSummary::getFromMD(MD); in testRoundTrip()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DProfileSummary.cpp47 Metadata *ProfileSummary::getDetailedSummaryMD(LLVMContext &Context) { in getDetailedSummaryMD()
68 Metadata *ProfileSummary::getMD(LLVMContext &Context) { in getMD()
142 ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) { in getFromMD()
148 ProfileSummary::Kind SummaryKind; in getFromMD()
183 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount, in getFromMD()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DProfileSummary.h43 class ProfileSummary {
58 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, in ProfileSummary() function
71 static ProfileSummary *getFromMD(Metadata *MD);
/external/llvm/include/llvm/IR/
DProfileSummary.h47 class ProfileSummary {
62 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, in ProfileSummary() function
74 static ProfileSummary *getFromMD(Metadata *MD);
/external/llvm-project/llvm/include/llvm/Analysis/
DProfileSummaryInfo.h42 std::unique_ptr<ProfileSummary> Summary;
74 Summary->getKind() == ProfileSummary::PSK_Sample; in hasSampleProfile()
80 Summary->getKind() == ProfileSummary::PSK_Instr; in hasInstrumentationProfile()
86 Summary->getKind() == ProfileSummary::PSK_CSInstr; in hasCSInstrumentationProfile()
/external/llvm-project/llvm/include/llvm/IR/
DProfileSummary.h45 class ProfileSummary {
71 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary,
87 static ProfileSummary *getFromMD(Metadata *MD);
/external/llvm-project/llvm/unittests/ProfileData/
DSampleProfTest.cpp79 void verifyProfileSummary(ProfileSummary &Summary, Module &M, in verifyProfileSummary()
86 ProfileSummary &Summary) mutable { in verifyProfileSummary()
87 ASSERT_EQ(ProfileSummary::PSK_Sample, Summary.getKind()); in verifyProfileSummary()
119 ProfileSummary *PS = ProfileSummary::getFromMD(MD); in verifyProfileSummary()
126 M.setProfileSummary(MD, ProfileSummary::PSK_Sample); in verifyProfileSummary()
129 PS = ProfileSummary::getFromMD(MD); in verifyProfileSummary()
314 ProfileSummary &Summary = Reader->getSummary(); in testRoundTrip()
/external/llvm/include/llvm/Analysis/
DProfileSummaryInfo.h30 class ProfileSummary; variable
44 std::unique_ptr<ProfileSummary> Summary;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DProfileCommon.h78 std::unique_ptr<ProfileSummary> getSummary();
88 std::unique_ptr<ProfileSummary> getSummary();
/external/llvm-project/llvm/include/llvm/ProfileData/
DProfileCommon.h82 std::unique_ptr<ProfileSummary> getSummary();
92 std::unique_ptr<ProfileSummary> getSummary();
/external/llvm/include/llvm/ProfileData/
DProfileCommon.h79 std::unique_ptr<ProfileSummary> getSummary();
88 std::unique_ptr<ProfileSummary> getSummary();
DSampleProfReader.h299 ProfileSummary &getSummary() { return *(Summary.get()); } in getSummary()
316 std::unique_ptr<ProfileSummary> Summary;
/external/llvm-project/llvm/test/Transforms/PGOProfile/
Dthinlto_cspgo_use.ll15 ; CSUSE: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
54 !1 = !{i32 1, !"ProfileSummary", !2}
DPR28219.ll9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
/external/llvm/test/Transforms/SampleProfile/
Dsummary.ll9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
/external/llvm/test/Transforms/PGOProfile/
DPR28219.ll9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
/external/llvm-project/llvm/lib/Analysis/
DProfileSummaryInfo.cpp100 Summary.reset(ProfileSummary::getFromMD(SummaryMD)); in refresh()
106 Summary.reset(ProfileSummary::getFromMD(SummaryMD)); in refresh()
417 Summary->getKind() == ProfileSummary::PSK_Sample && in hasPartialSampleProfile()

1234567