Home
last modified time | relevance | path

Searched refs:ProfileData (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingMerge.c42 int __llvm_profile_check_compatibility(const char *ProfileData, in __llvm_profile_check_compatibility() argument
45 __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() argument
90 __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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp122 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()
H A DInstrProfReader.cpp353 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp813 MDNode *ProfileData = getMetadata(LLVMContext::MD_prof); in swapProfMetadata() local
814 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()
H A DMetadata.cpp1402 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfMetadata() local
1403 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()
1430 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfTotalWeight() local
1431 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()
1448 ProfileData->getNumOperands() > 3) { in extractProfTotalWeight()
[all …]
H A DInstructions.cpp568 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in updateProfWeight() local
569 if (ProfileData == nullptr) in updateProfWeight()
588 Vals.push_back(ProfileData->getOperand(0)); in updateProfWeight()
591 ProfileData->getNumOperands() > 0) { in updateProfWeight()
603 Vals.push_back(ProfileData->getOperand(i)); in updateProfWeight()
610 Vals.push_back(ProfileData->getOperand(i + 1)); in updateProfWeight()
4124 if (MDNode *ProfileData = SI.getMetadata(LLVMContext::MD_prof)) in getProfBranchWeightsMD() local
4127 return ProfileData; in getProfBranchWeightsMD()
4150 MDNode *ProfileData = getProfBranchWeightsMD(SI); in init() local
4151 if (!ProfileData) in init()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfReader.h217 const RawInstrProf::ProfileData<IntPtrT> *Data;
218 const RawInstrProf::ProfileData<IntPtrT> *DataEnd;
H A DInstrProfData.inc34 * #include "llvm/ProfileData/InstrProfData.inc"
42 * #include "llvm/ProfileData/InstrProfData.inc"
49 * #include "llvm/ProfileData/InstrProfData.inc"
H A DInstrProf.h1124 template <class IntPtrT> struct alignas(8) ProfileData { struct
/freebsd-13.1/lib/clang/libllvm/
H A DMakefile892 SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp
893 SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp
894 SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp
895 SRCS_MIN+= ProfileData/GCOV.cpp
896 SRCS_MIN+= ProfileData/InstrProf.cpp
897 SRCS_MIN+= ProfileData/InstrProfReader.cpp
898 SRCS_MIN+= ProfileData/InstrProfWriter.cpp
899 SRCS_MIN+= ProfileData/ProfileSummaryBuilder.cpp
900 SRCS_MIN+= ProfileData/SampleProf.cpp
901 SRCS_MIN+= ProfileData/SampleProfReader.cpp
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/
H A Dmodule.modulemap368 umbrella "ProfileData"
371 textual header "ProfileData/InstrProfData.inc"
/freebsd-13.1/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc34 * #include "llvm/ProfileData/InstrProfData.inc"
42 * #include "llvm/ProfileData/InstrProfData.inc"
49 * #include "llvm/ProfileData/InstrProfData.inc"
/freebsd-13.1/contrib/llvm-project/
H A DFREEBSD-Xlist544 llvm/lib/ProfileData/CMakeLists.txt
545 llvm/lib/ProfileData/Coverage/CMakeLists.txt