reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ProfileData/InstrProf.h
  804     case IPVK_IndirectCallTarget:
  818     case IPVK_IndirectCallTarget:
include/llvm/ProfileData/InstrProfData.inc
  193 VALUE_PROF_KIND(IPVK_First, IPVK_IndirectCallTarget, "first")
lib/Analysis/IndirectCallPromotionAnalysis.cpp
   98       getValueProfDataFromInst(*I, IPVK_IndirectCallTarget, MaxNumPromotions,
lib/ProfileData/InstrProf.cpp
  701   if (ValueKind == IPVK_IndirectCallTarget)
 1251     case IPVK_IndirectCallTarget:
lib/ProfileData/InstrProfReader.cpp
  220         if (ValueKind == IPVK_IndirectCallTarget) {
lib/ProfileData/InstrProfWriter.cpp
  427         if (VK == IPVK_IndirectCallTarget)
lib/Transforms/IPO/SampleProfile.cpp
 1447                             SortedCallTargets, Sum, IPVK_IndirectCallTarget,
lib/Transforms/Instrumentation/CGProfile.cpp
   60                                         IPVK_IndirectCallTarget, 8, ValueData,
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  376                       IPVK_IndirectCallTarget, NumCandidates);
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  580       ValueSites[IPVK_IndirectCallTarget] = VPC.get(IPVK_IndirectCallTarget);
  580       ValueSites[IPVK_IndirectCallTarget] = VPC.get(IPVK_IndirectCallTarget);
  631                  (uint64_t)ValueSites[IPVK_IndirectCallTarget].size() << 48 |
  642                     << ValueSites[IPVK_IndirectCallTarget].size()
  839   NumOfPGOICall += FuncInfo.ValueSites[IPVK_IndirectCallTarget].size();
lib/Transforms/Instrumentation/ValueProfilePlugins.inc
   55   static constexpr InstrProfValueKind Kind = IPVK_IndirectCallTarget;
tools/clang/lib/CodeGen/CGCall.cpp
 4388     PGO.valueProfile(Builder, llvm::IPVK_IndirectCallTarget,
tools/llvm-profdata/llvm-profdata.cpp
  918            << Func.getNumValueSites(IPVK_IndirectCallTarget) << "\n";
  936         traverseAllValueSites(Func, IPVK_IndirectCallTarget,
  937                               VPStats[IPVK_IndirectCallTarget], OS,
  982     showValueSitesStats(OS, IPVK_IndirectCallTarget,
  983                         VPStats[IPVK_IndirectCallTarget]);
unittests/ProfileData/InstrProfTest.cpp
  235   Record1.reserveSites(IPVK_IndirectCallTarget, 4);
  238   Record1.addValueData(IPVK_IndirectCallTarget, 0, VD0, 3, nullptr);
  240   Record1.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  242   Record1.addValueData(IPVK_IndirectCallTarget, 2, VD2, 2, nullptr);
  244   Record1.addValueData(IPVK_IndirectCallTarget, 3, VD3, 1, nullptr);
  255   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  256   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  257   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  258   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  259   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  263       R->getValueForSite(IPVK_IndirectCallTarget, 0, &TotalC);
  277   Record.reserveSites(IPVK_IndirectCallTarget, 1);
  280   Record.addValueData(IPVK_IndirectCallTarget, 0, VD0, 6, nullptr);
  302   annotateValueSite(*M, *Inst, R.get(), IPVK_IndirectCallTarget, 0);
  307   bool Res = getValueProfDataFromInst(*Inst, IPVK_IndirectCallTarget, 5,
  319   Res = getValueProfDataFromInst(*Inst, IPVK_IndirectCallTarget, 1, ValueData,
  325   Res = getValueProfDataFromInst(*Inst2, IPVK_IndirectCallTarget, 5, ValueData,
  332   annotateValueSite(*M, *Inst, R.get(), IPVK_IndirectCallTarget, 0, 5);
  333   Res = getValueProfDataFromInst(*Inst, IPVK_IndirectCallTarget, 5,
  355                     IPVK_IndirectCallTarget, 5);
  356   Res = getValueProfDataFromInst(*Inst, IPVK_IndirectCallTarget, 5,
  375   Record1.reserveSites(IPVK_IndirectCallTarget, 4);
  378   Record1.addValueData(IPVK_IndirectCallTarget, 0, VD0, 3, nullptr);
  380   Record1.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  382   Record1.addValueData(IPVK_IndirectCallTarget, 2, VD2, 2, nullptr);
  384   Record1.addValueData(IPVK_IndirectCallTarget, 3, VD3, 1, nullptr);
  395   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  396   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  397   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  398   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  399   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  403       R->getValueForSite(IPVK_IndirectCallTarget, 0, &TotalC);
  418   Record1.reserveSites(IPVK_IndirectCallTarget, 4);
  421   Record1.addValueData(IPVK_IndirectCallTarget, 0, VD0, 3, nullptr);
  423   Record1.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  425   Record1.addValueData(IPVK_IndirectCallTarget, 2, VD2, 2, nullptr);
  427   Record1.addValueData(IPVK_IndirectCallTarget, 3, VD3, 1, nullptr);
  445   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  446   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  447   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  448   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  449   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  452       R->getValueForSite(IPVK_IndirectCallTarget, 0);
  467   Record11.reserveSites(IPVK_IndirectCallTarget, 5);
  472   Record11.addValueData(IPVK_IndirectCallTarget, 0, VD0, 4, nullptr);
  475   Record11.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  479   Record11.addValueData(IPVK_IndirectCallTarget, 2, VD2, 3, nullptr);
  482   Record11.addValueData(IPVK_IndirectCallTarget, 3, VD3, 1, nullptr);
  487   Record11.addValueData(IPVK_IndirectCallTarget, 4, VD4, 3, nullptr);
  490   Record12.reserveSites(IPVK_IndirectCallTarget, 5);
  492   Record12.addValueData(IPVK_IndirectCallTarget, 0, VD02, 2, nullptr);
  495   Record12.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  499   Record12.addValueData(IPVK_IndirectCallTarget, 2, VD22, 3, nullptr);
  501   Record12.addValueData(IPVK_IndirectCallTarget, 3, nullptr, 0, nullptr);
  506   Record12.addValueData(IPVK_IndirectCallTarget, 4, VD42, 3, nullptr);
  522   ASSERT_EQ(5U, R->getNumValueSites(IPVK_IndirectCallTarget));
  523   ASSERT_EQ(4U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  524   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  525   ASSERT_EQ(4U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  526   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  527   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 4));
  530       R->getValueForSite(IPVK_IndirectCallTarget, 0);
  541       R->getValueForSite(IPVK_IndirectCallTarget, 2));
  552       R->getValueForSite(IPVK_IndirectCallTarget, 3));
  557       R->getValueForSite(IPVK_IndirectCallTarget, 4));
  587   Record4.reserveSites(IPVK_IndirectCallTarget, 1);
  589   Record4.addValueData(IPVK_IndirectCallTarget, 0, VD4, 1, nullptr);
  596   Record5.reserveSites(IPVK_IndirectCallTarget, 1);
  598   Record5.addValueData(IPVK_IndirectCallTarget, 0, VD5, 1, nullptr);
  615   ASSERT_EQ(1U, ReadRecord2->getNumValueSites(IPVK_IndirectCallTarget));
  617       ReadRecord2->getValueForSite(IPVK_IndirectCallTarget, 0);
  632   Record11.reserveSites(IPVK_IndirectCallTarget, 2);
  639   Record11.addValueData(IPVK_IndirectCallTarget, 0, VD0, 255, nullptr);
  640   Record11.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  642   Record12.reserveSites(IPVK_IndirectCallTarget, 2);
  649   Record12.addValueData(IPVK_IndirectCallTarget, 0, VD1, 255, nullptr);
  650   Record12.addValueData(IPVK_IndirectCallTarget, 1, nullptr, 0, nullptr);
  662       R->getValueForSite(IPVK_IndirectCallTarget, 0));
  663   ASSERT_EQ(2U, R->getNumValueSites(IPVK_IndirectCallTarget));
  664   ASSERT_EQ(255U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  672   Record.reserveSites(IPVK_IndirectCallTarget, 5);
  678   Record.addValueData(IPVK_IndirectCallTarget, 0, VD0, 5, nullptr);
  683   Record.addValueData(IPVK_IndirectCallTarget, 1, VD1, 4, nullptr);
  687   Record.addValueData(IPVK_IndirectCallTarget, 2, VD2, 3, nullptr);
  690   Record.addValueData(IPVK_IndirectCallTarget, 3, VD3, 2, nullptr);
  691   Record.addValueData(IPVK_IndirectCallTarget, 4, nullptr, 0, nullptr);
  704   ASSERT_EQ(5U, Record.getNumValueSites(IPVK_IndirectCallTarget));
  705   ASSERT_EQ(5U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  706   ASSERT_EQ(4U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  707   ASSERT_EQ(3U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  708   ASSERT_EQ(2U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  709   ASSERT_EQ(0U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 4));
  715       Record.getValueForSite(IPVK_IndirectCallTarget, 0));
  729       Record.getValueForSite(IPVK_IndirectCallTarget, 1));
  741       Record.getValueForSite(IPVK_IndirectCallTarget, 2));
  751       Record.getValueForSite(IPVK_IndirectCallTarget, 3));
  777   ASSERT_EQ(5U, Record.getNumValueSites(IPVK_IndirectCallTarget));
  778   ASSERT_EQ(5U, Record.getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  784       Record.getValueForSite(IPVK_IndirectCallTarget, 0));