Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp76 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() argument
82 return isBranchWeightMD(ProfileData); in hasBranchWeightMD()
91 if (!isBranchWeightMD(ProfileData)) in getBranchWeightMDNode()
93 return ProfileData; in getBranchWeightMDNode()
97 auto *ProfileData = getBranchWeightMDNode(I); in getValidBranchWeightMDNode() local
98 if (ProfileData && ProfileData->getNumOperands() == 1 + I.getNumSuccessors()) in getValidBranchWeightMDNode()
99 return ProfileData; in getValidBranchWeightMDNode()
107 unsigned NOps = ProfileData->getNumOperands(); in extractFromBranchWeightMD()
123 if (!isBranchWeightMD(ProfileData)) in extractBranchWeights()
157 if (!ProfileData) in extractProfTotalWeight()
[all …]
H A DInstruction.cpp1166 MDNode *ProfileData = getBranchWeightMDNode(*this); in swapProfMetadata() local
1167 if (!ProfileData || ProfileData->getNumOperands() != 3) in swapProfMetadata()
1171 Metadata *Ops[] = {ProfileData->getOperand(0), ProfileData->getOperand(2), in swapProfMetadata()
1172 ProfileData->getOperand(1)}; in swapProfMetadata()
1174 MDNode::get(ProfileData->getContext(), Ops)); in swapProfMetadata()
H A DInstructions.cpp757 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in updateProfWeight() local
758 if (ProfileData == nullptr) in updateProfWeight()
777 Vals.push_back(ProfileData->getOperand(0)); in updateProfWeight()
780 ProfileData->getNumOperands() > 0) { in updateProfWeight()
790 for (unsigned i = 1; i < ProfileData->getNumOperands(); i += 2) { in updateProfWeight()
792 Vals.push_back(ProfileData->getOperand(i)); in updateProfWeight()
799 Vals.push_back(ProfileData->getOperand(i + 1)); in updateProfWeight()
4582 MDNode *ProfileData = getBranchWeightMDNode(SI); in init() local
4583 if (!ProfileData) in init()
4592 if (!extractBranchWeights(ProfileData, Weights)) in init()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfDataUtils.h28 bool isBranchWeightMD(const MDNode *ProfileData);
64 bool extractBranchWeights(const MDNode *ProfileData,
69 void extractFromBranchWeightMD(const MDNode *ProfileData,
97 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalWeights);
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingMerge.c51 int __llvm_profile_check_compatibility(const char *ProfileData, in __llvm_profile_check_compatibility() argument
53 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_check_compatibility()
56 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_check_compatibility()
111 int __llvm_profile_merge_from_buffer(const char *ProfileData, in __llvm_profile_merge_from_buffer() argument
121 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_merge_from_buffer()
131 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_merge_from_buffer()
228 if (SrcValueProfData >= ProfileData + ProfileSize) in __llvm_profile_merge_from_buffer()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp130 for (const auto &ProfileData : *V) { in EmitKeyDataLength()
131 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
139 M += ValueProfData::getSize(ProfileData.second); in EmitKeyDataLength()
154 for (const auto &ProfileData : *V) { in EmitData()
155 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
156 if (NamedInstrProfRecord::hasCSFlagInHash(ProfileData.first)) in EmitData()
161 LE.write<uint64_t>(ProfileData.first); // Function hash in EmitData()
172 ValueProfData::serializeFrom(ProfileData.second); in EmitData()
H A DInstrProfReader.cpp538 for (const RawInstrProf::ProfileData<IntPtrT> *I = Data; I != DataEnd; ++I) { in createSymtab()
587 auto DataSize = NumData * sizeof(RawInstrProf::ProfileData<IntPtrT>); in readHeader()
614 Data = reinterpret_cast<const RawInstrProf::ProfileData<IntPtrT> *>( in readHeader()
H A DInstrProfCorrelator.cpp445 using RawProfData = RawInstrProf::ProfileData<IntPtrT>; in correlateProfileDataImpl()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h133 const RawInstrProf::ProfileData<IntPtrT> *getDataPointer() const {
145 std::vector<RawInstrProf::ProfileData<IntPtrT>> Data;
H A DInstrProfReader.h327 const RawInstrProf::ProfileData<IntPtrT> *Data;
328 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.h1184 template <class IntPtrT> struct alignas(8) ProfileData { struct
/freebsd-14.2/contrib/llvm-project/llvm/include/
H A Dmodule.modulemap315 umbrella "llvm/ProfileData"
318 textual header "llvm/ProfileData/InstrProfData.inc"
319 textual header "llvm/ProfileData/MemProfData.inc"
320 textual header "llvm/ProfileData/MIBEntryDef.inc"
/freebsd-14.2/lib/clang/libllvm/
H A DMakefile1052 SRCS_MIN+= ProfileData/GCOV.cpp
1053 SRCS_MIN+= ProfileData/InstrProf.cpp
1054 SRCS_MIN+= ProfileData/InstrProfCorrelator.cpp
1055 SRCS_MIN+= ProfileData/InstrProfReader.cpp
1056 SRCS_MIN+= ProfileData/InstrProfWriter.cpp
1058 SRCS_MIN+= ProfileData/MemProf.cpp
1059 SRCS_MIN+= ProfileData/ProfileSummaryBuilder.cpp
1060 SRCS_MIW+= ProfileData/RawMemProfReader.cpp
1061 SRCS_MIN+= ProfileData/SampleProf.cpp
1062 SRCS_MIN+= ProfileData/SampleProfReader.cpp
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp920 if (MDNode *ProfileData = getValidBranchWeightMDNode(*Term)) { in isLoopProfitableToPredicate() local
922 extractBranchWeights(ProfileData, Weights); in isLoopProfitableToPredicate()
/freebsd-14.2/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-14.2/contrib/llvm-project/
H A DFREEBSD-Xlist604 llvm/lib/ProfileData/CMakeLists.txt
605 llvm/lib/ProfileData/Coverage/CMakeLists.txt