Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/profile/
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-12-stable/contrib/llvm-project/llvm/lib/ProfileData/
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()
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-12-stable/contrib/llvm-project/llvm/lib/IR/
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()
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()
1411 auto *CIFalse = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(2)); 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()
[all …]
DInstructions.cpp568 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in updateProfWeight() local
569 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 …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/
DInstrProfReader.h217 const RawInstrProf::ProfileData<IntPtrT> *Data;
218 const RawInstrProf::ProfileData<IntPtrT> *DataEnd;
DInstrProfData.inc34 * #include "llvm/ProfileData/InstrProfData.inc"
42 * #include "llvm/ProfileData/InstrProfData.inc"
49 * #include "llvm/ProfileData/InstrProfData.inc"
DInstrProf.h1124 template <class IntPtrT> struct alignas(8) ProfileData { struct
/freebsd-12-stable/lib/clang/libllvm/
DMakefile893 SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp
894 SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp
895 SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp
896 SRCS_MIN+= ProfileData/GCOV.cpp
897 SRCS_MIN+= ProfileData/InstrProf.cpp
898 SRCS_MIN+= ProfileData/InstrProfReader.cpp
899 SRCS_MIN+= ProfileData/InstrProfWriter.cpp
900 SRCS_MIN+= ProfileData/ProfileSummaryBuilder.cpp
901 SRCS_MIN+= ProfileData/SampleProf.cpp
902 SRCS_MIN+= ProfileData/SampleProfReader.cpp
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/
Dmodule.modulemap368 umbrella "ProfileData"
371 textual header "ProfileData/InstrProfData.inc"
/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/profile/
DInstrProfData.inc34 * #include "llvm/ProfileData/InstrProfData.inc"
42 * #include "llvm/ProfileData/InstrProfData.inc"
49 * #include "llvm/ProfileData/InstrProfData.inc"
/freebsd-12-stable/contrib/llvm-project/
DFREEBSD-Xlist544 llvm/lib/ProfileData/CMakeLists.txt
545 llvm/lib/ProfileData/Coverage/CMakeLists.txt