Home
last modified time | relevance | path

Searched refs:NumValueSites (Results 1 – 25 of 29) sorted by relevance

12

/external/compiler-rt/lib/profile/
DInstrProfilingValue.c58 uint32_t ValueKind, uint16_t NumValueSites) { in __llvm_profile_set_num_value_sites() argument
59 *((uint16_t *)&Data->NumValueSites[ValueKind]) = NumValueSites; in __llvm_profile_set_num_value_sites()
93 NumVSites += Data->NumValueSites[VKI]; in allocateValueProfileCounters()
238 return ((const ValueProfRuntimeRecord *)R)->Data->NumValueSites[VK]; in getNumValueSitesRT()
246 for (I = 0; I < Record->Data->NumValueSites[VK]; I++) in getNumValueDataRT()
274 uint16_t N = Data->NumValueSites[I]; in initializeValueProfRuntimeRecord()
DInstrProfilingWriter.c121 if (!Data->NumValueSites[I]) in writeOneValueProfData()
125 VPDataReader->GetValueProfRecordHeaderSize(Data->NumValueSites[I]) - in writeOneValueProfData()
162 if (!Data->NumValueSites[I]) in writeOneValueProfData()
167 RecordHeader.NumValueSites = Data->NumValueSites[I]; in writeOneValueProfData()
174 VPDataReader->GetValueProfRecordHeaderSize(Data->NumValueSites[I]) - in writeOneValueProfData()
180 for (J = 0; J < Data->NumValueSites[I]; J++) { in writeOneValueProfData()
DInstrProfData.inc92 INSTR_PROF_DATA(const uint16_t, Int16ArrayTy, NumValueSites[IPVK_Last+1], \
252 uint32_t NumValueSites;
255 * values for each value site. The size of the array is NumValueSites.
256 * Since NumValueSites is greater than zero, there is at least one
276 uint32_t getNumValueSites() const { return NumValueSites; }
403 getValueProfRecordHeaderSize(uint32_t NumValueSites);
428 uint32_t getValueProfRecordHeaderSize(uint32_t NumValueSites) {
430 sizeof(uint8_t) * NumValueSites;
441 uint32_t getValueProfRecordSize(uint32_t NumValueSites,
443 return getValueProfRecordHeaderSize(NumValueSites) +
[all …]
DInstrProfilingMergeFile.c32 for (S = 0; S < VR->NumValueSites; S++) { in lprofMergeValueProfData()
DInstrProfiling.c58 CurrentVSiteCount += DI->NumValueSites[VKI]; in __llvm_profile_reset_counters()
/external/llvm/include/llvm/ProfileData/
DInstrProfData.inc92 INSTR_PROF_DATA(const uint16_t, Int16ArrayTy, NumValueSites[IPVK_Last+1], \
252 uint32_t NumValueSites;
255 * values for each value site. The size of the array is NumValueSites.
256 * Since NumValueSites is greater than zero, there is at least one
276 uint32_t getNumValueSites() const { return NumValueSites; }
403 getValueProfRecordHeaderSize(uint32_t NumValueSites);
428 uint32_t getValueProfRecordHeaderSize(uint32_t NumValueSites) {
430 sizeof(uint8_t) * NumValueSites;
441 uint32_t getValueProfRecordSize(uint32_t NumValueSites,
443 return getValueProfRecordHeaderSize(NumValueSites) +
[all …]
DInstrProf.h606 inline void reserveSites(uint32_t ValueKind, uint32_t NumValueSites);
727 void InstrProfRecord::reserveSites(uint32_t ValueKind, uint32_t NumValueSites) { in reserveSites() argument
730 ValueSites.reserve(NumValueSites); in reserveSites()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProfData.inc92 INSTR_PROF_DATA(const uint16_t, Int16ArrayTy, NumValueSites[IPVK_Last+1], \
289 uint32_t NumValueSites;
292 * values for each value site. The size of the array is NumValueSites.
293 * Since NumValueSites is greater than zero, there is at least one
313 uint32_t getNumValueSites() const { return NumValueSites; }
440 getValueProfRecordHeaderSize(uint32_t NumValueSites);
465 uint32_t getValueProfRecordHeaderSize(uint32_t NumValueSites) {
467 sizeof(uint8_t) * NumValueSites;
478 uint32_t getValueProfRecordSize(uint32_t NumValueSites,
480 return getValueProfRecordHeaderSize(NumValueSites) +
[all …]
DInstrProf.h675 inline void reserveSites(uint32_t ValueKind, uint32_t NumValueSites);
831 void InstrProfRecord::reserveSites(uint32_t ValueKind, uint32_t NumValueSites) { in reserveSites() argument
832 if (!NumValueSites) in reserveSites()
834 getOrCreateValueSitesForKind(ValueKind).reserve(NumValueSites); in reserveSites()
/external/llvm/include/llvm/Transforms/
DInstrProfiling.h39 uint32_t NumValueSites[IPVK_Last + 1]; member
43 memset(NumValueSites, 0, sizeof(uint32_t) * (IPVK_Last + 1)); in PerFunctionProfileData()
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-profdata/
Dmemop-size-prof.proftext57 # NumValueSites:
102 #ICALL_TEXT: # NumValueSites:
112 #MEMOP_TEXT: # NumValueSites:
Dinvalid-profdata.test15 RUN: echo "# NumValueSites:" >> %t.input
40 RUN: echo "# NumValueSites:" >> %t.input
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h50 uint32_t NumValueSites[IPVK_Last + 1]; member
55 memset(NumValueSites, 0, sizeof(uint32_t) * (IPVK_Last + 1)); in PerFunctionProfileData()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp189 PD.NumValueSites[ValueKind] = Index + 1; in computeNumValueSiteCounts()
191 } else if (It->second.NumValueSites[ValueKind] <= Index) in computeNumValueSiteCounts()
192 It->second.NumValueSites[ValueKind] = Index + 1; in computeNumValueSiteCounts()
206 Index += It->second.NumValueSites[Kind]; in lowerValueProfileInst()
368 NS += PD.NumValueSites[Kind]; in getOrCreateRegionCounters()
400 Int16ArrayVals[Kind] = ConstantInt::get(Int16Ty, PD.NumValueSites[Kind]); in getOrCreateRegionCounters()
443 TotalNS += PD.second.NumValueSites[Kind]; in emitVNodes()
/external/clang/lib/CodeGen/
DCodeGenPGO.h37 std::array <unsigned, llvm::IPVK_Last + 1> NumValueSites; variable
51 : CGM(CGM), NumValueSites({{0}}), NumRegionCounters(0), in CodeGenPGO()
DCodeGenPGO.cpp774 Builder.getInt32(NumValueSites[ValueKind]++) in valueProfile()
790 if (NumValueSites[ValueKind] >= ProfRecord->getNumValueSites(ValueKind)) in valueProfile()
795 NumValueSites[ValueKind]); in valueProfile()
797 NumValueSites[ValueKind]++; in valueProfile()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp550 PD.NumValueSites[ValueKind] = Index + 1; in computeNumValueSiteCounts()
552 } else if (It->second.NumValueSites[ValueKind] <= Index) in computeNumValueSiteCounts()
553 It->second.NumValueSites[ValueKind] = Index + 1; in computeNumValueSiteCounts()
566 Index += It->second.NumValueSites[Kind]; in lowerValueProfileInst()
742 NS += PD.NumValueSites[Kind]; in getOrCreateRegionCounters()
775 Int16ArrayVals[Kind] = ConstantInt::get(Int16Ty, PD.NumValueSites[Kind]); in getOrCreateRegionCounters()
818 TotalNS += PD.second.NumValueSites[Kind]; in emitVNodes()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/PGOProfile/Inputs/
Dmemop_size_annotation.proftext16 # NumValueSites:
Dindirect_call.proftext13 # NumValueSites:
/external/llvm/test/Transforms/PGOProfile/Inputs/
Dindirect_call.proftext13 # NumValueSites:
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp169 VP_READ_ADVANCE(NumValueSites); in readValueProfileData()
170 if (!NumValueSites) in readValueProfileData()
173 Record.reserveSites(VK, NumValueSites); in readValueProfileData()
174 for (uint32_t S = 0; S < NumValueSites; S++) { in readValueProfileData()
404 NumValueKinds += (Data->NumValueSites[I] != 0); in readValueProfilingData()
DInstrProf.cpp534 Record.reserveSites(Kind, NumValueSites); in deserializeTo()
537 for (uint64_t VSite = 0; VSite < NumValueSites; ++VSite) { in deserializeTo()
554 sys::swapByteOrder<uint32_t>(NumValueSites); in swapBytes()
566 sys::swapByteOrder<uint32_t>(NumValueSites); in swapBytes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp189 VP_READ_ADVANCE(NumValueSites); in readValueProfileData()
190 if (!NumValueSites) in readValueProfileData()
193 Record.reserveSites(VK, NumValueSites); in readValueProfileData()
194 for (uint32_t S = 0; S < NumValueSites; S++) { in readValueProfileData()
425 NumValueKinds += (Data->NumValueSites[I] != 0); in readValueProfilingData()
DInstrProf.cpp671 Record.reserveSites(Kind, NumValueSites); in deserializeTo()
674 for (uint64_t VSite = 0; VSite < NumValueSites; ++VSite) { in deserializeTo()
692 sys::swapByteOrder<uint32_t>(NumValueSites); in swapBytes()
704 sys::swapByteOrder<uint32_t>(NumValueSites); in swapBytes()
/external/compiler-rt/test/profile/
Dinstrprof-value-prof-2.c20 uint16_t NumValueSites);

12