Searched refs:ProfileData (Results 1 – 13 of 13) sorted by relevance
42 int __llvm_profile_check_compatibility(const char *ProfileData, in __llvm_profile_check_compatibility() argument45 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_check_compatibility()48 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_check_compatibility()87 int __llvm_profile_merge_from_buffer(const char *ProfileData, in __llvm_profile_merge_from_buffer() argument90 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_merge_from_buffer()96 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_merge_from_buffer()137 if (SrcValueProfData >= ProfileData + ProfileSize) in __llvm_profile_merge_from_buffer()
122 for (const auto &ProfileData : *V) { in EmitKeyDataLength()123 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()129 M += ValueProfData::getSize(ProfileData.second); in EmitKeyDataLength()144 for (const auto &ProfileData : *V) { in EmitData()145 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()146 if (NamedInstrProfRecord::hasCSFlagInHash(ProfileData.first)) in EmitData()151 LE.write<uint64_t>(ProfileData.first); // Function hash in EmitData()158 ValueProfData::serializeFrom(ProfileData.second); in EmitData()
353 for (const RawInstrProf::ProfileData<IntPtrT> *I = Data; I != DataEnd; ++I) { in createSymtab()379 auto DataSizeInBytes = DataSize * sizeof(RawInstrProf::ProfileData<IntPtrT>); in readHeader()394 Data = reinterpret_cast<const RawInstrProf::ProfileData<IntPtrT> *>( in readHeader()
813 MDNode *ProfileData = getMetadata(LLVMContext::MD_prof); in swapProfMetadata() local814 if (!ProfileData || ProfileData->getNumOperands() != 3 || in swapProfMetadata()815 !isa<MDString>(ProfileData->getOperand(0))) in swapProfMetadata()818 MDString *MDName = cast<MDString>(ProfileData->getOperand(0)); in swapProfMetadata()823 Metadata *Ops[] = {ProfileData->getOperand(0), ProfileData->getOperand(2), in swapProfMetadata()824 ProfileData->getOperand(1)}; in swapProfMetadata()826 MDNode::get(ProfileData->getContext(), Ops)); in swapProfMetadata()
1402 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfMetadata() local1403 if (!ProfileData || ProfileData->getNumOperands() != 3) in extractProfMetadata()1406 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0)); in extractProfMetadata()1410 auto *CITrue = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(1)); in extractProfMetadata()1411 auto *CIFalse = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(2)); in extractProfMetadata()1430 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfTotalWeight() local1431 if (!ProfileData) in extractProfTotalWeight()1434 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0)); in extractProfTotalWeight()1440 for (unsigned i = 1; i < ProfileData->getNumOperands(); i++) { in extractProfTotalWeight()1441 auto *V = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(i)); in extractProfTotalWeight()[all …]
568 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in updateProfWeight() local569 if (ProfileData == nullptr) in updateProfWeight()572 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0)); in updateProfWeight()588 Vals.push_back(ProfileData->getOperand(0)); in updateProfWeight()591 ProfileData->getNumOperands() > 0) { in updateProfWeight()593 APInt Val(128, mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(1)) in updateProfWeight()601 for (unsigned i = 1; i < ProfileData->getNumOperands(); i += 2) { in updateProfWeight()603 Vals.push_back(ProfileData->getOperand(i)); in updateProfWeight()605 mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(i + 1)) in updateProfWeight()610 Vals.push_back(ProfileData->getOperand(i + 1)); in updateProfWeight()[all …]
217 const RawInstrProf::ProfileData<IntPtrT> *Data;218 const RawInstrProf::ProfileData<IntPtrT> *DataEnd;
34 * #include "llvm/ProfileData/InstrProfData.inc"42 * #include "llvm/ProfileData/InstrProfData.inc"49 * #include "llvm/ProfileData/InstrProfData.inc"
1124 template <class IntPtrT> struct alignas(8) ProfileData { struct
893 SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp894 SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp895 SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp896 SRCS_MIN+= ProfileData/GCOV.cpp897 SRCS_MIN+= ProfileData/InstrProf.cpp898 SRCS_MIN+= ProfileData/InstrProfReader.cpp899 SRCS_MIN+= ProfileData/InstrProfWriter.cpp900 SRCS_MIN+= ProfileData/ProfileSummaryBuilder.cpp901 SRCS_MIN+= ProfileData/SampleProf.cpp902 SRCS_MIN+= ProfileData/SampleProfReader.cpp[all …]
368 umbrella "ProfileData"371 textual header "ProfileData/InstrProfData.inc"
544 llvm/lib/ProfileData/CMakeLists.txt545 llvm/lib/ProfileData/Coverage/CMakeLists.txt