/external/llvm/lib/ProfileData/ |
D | ProfileSummaryBuilder.cpp | 73 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/ |
D | ProfileSummaryBuilder.cpp | 76 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/ |
D | ModuleTest.cpp | 94 !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/ |
D | ProfileSummaryBuilder.cpp | 89 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/ |
D | ProfileSummary.cpp | 25 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/ |
D | ProfileSummaryInfo.h | 32 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/ |
D | ProfileSummary.cpp | 56 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()
|
D | Module.cpp | 578 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/ |
D | SampleProfTest.cpp | 114 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/ |
D | ProfileSummary.cpp | 47 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/ |
D | ProfileSummary.h | 43 class ProfileSummary { 58 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, in ProfileSummary() function 71 static ProfileSummary *getFromMD(Metadata *MD);
|
/external/llvm/include/llvm/IR/ |
D | ProfileSummary.h | 47 class ProfileSummary { 62 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, in ProfileSummary() function 74 static ProfileSummary *getFromMD(Metadata *MD);
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | ProfileSummaryInfo.h | 42 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/ |
D | ProfileSummary.h | 45 class ProfileSummary { 71 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, 87 static ProfileSummary *getFromMD(Metadata *MD);
|
/external/llvm-project/llvm/unittests/ProfileData/ |
D | SampleProfTest.cpp | 79 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/ |
D | ProfileSummaryInfo.h | 30 class ProfileSummary; variable 44 std::unique_ptr<ProfileSummary> Summary;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | ProfileCommon.h | 78 std::unique_ptr<ProfileSummary> getSummary(); 88 std::unique_ptr<ProfileSummary> getSummary();
|
/external/llvm-project/llvm/include/llvm/ProfileData/ |
D | ProfileCommon.h | 82 std::unique_ptr<ProfileSummary> getSummary(); 92 std::unique_ptr<ProfileSummary> getSummary();
|
/external/llvm/include/llvm/ProfileData/ |
D | ProfileCommon.h | 79 std::unique_ptr<ProfileSummary> getSummary(); 88 std::unique_ptr<ProfileSummary> getSummary();
|
D | SampleProfReader.h | 299 ProfileSummary &getSummary() { return *(Summary.get()); } in getSummary() 316 std::unique_ptr<ProfileSummary> Summary;
|
/external/llvm-project/llvm/test/Transforms/PGOProfile/ |
D | thinlto_cspgo_use.ll | 15 ; CSUSE: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}} 54 !1 = !{i32 1, !"ProfileSummary", !2}
|
D | PR28219.ll | 9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
/external/llvm/test/Transforms/SampleProfile/ |
D | summary.ll | 9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
/external/llvm/test/Transforms/PGOProfile/ |
D | PR28219.ll | 9 ; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ProfileSummaryInfo.cpp | 100 Summary.reset(ProfileSummary::getFromMD(SummaryMD)); in refresh() 106 Summary.reset(ProfileSummary::getFromMD(SummaryMD)); in refresh() 417 Summary->getKind() == ProfileSummary::PSK_Sample && in hasPartialSampleProfile()
|