Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp71 static void extractFromBranchWeightMD(const MDNode *ProfileData, in extractFromBranchWeightMD() argument
73 assert(isBranchWeightMD(ProfileData) && "wrong metadata"); in extractFromBranchWeightMD()
75 unsigned NOps = ProfileData->getNumOperands(); in extractFromBranchWeightMD()
76 unsigned WeightsIdx = getBranchWeightOffset(ProfileData); in extractFromBranchWeightMD()
82 mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(Idx)); in extractFromBranchWeightMD()
98 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() argument
99 return isTargetMD(ProfileData, "branch_weights", MinBWOps); in isBranchWeightMD()
102 bool isValueProfileMD(const MDNode *ProfileData) { in isValueProfileMD() argument
103 return isTargetMD(ProfileData, "VP", MinVPOps); in isValueProfileMD()
107 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() local
[all …]
H A DInstruction.cpp1258 MDNode *ProfileData = getBranchWeightMDNode(*this); in swapProfMetadata() local
1259 if (!ProfileData) in swapProfMetadata()
1261 unsigned FirstIdx = getBranchWeightOffset(ProfileData); in swapProfMetadata()
1262 if (ProfileData->getNumOperands() != 2 + FirstIdx) in swapProfMetadata()
1268 if (ProfileData->getNumOperands() > SecondIdx + 1) in swapProfMetadata()
1271 Ops.push_back(ProfileData->getOperand(Idx)); in swapProfMetadata()
1274 Ops.push_back(ProfileData->getOperand(SecondIdx)); in swapProfMetadata()
1275 Ops.push_back(ProfileData->getOperand(FirstIdx)); in swapProfMetadata()
1277 MDNode::get(ProfileData->getContext(), Ops)); in swapProfMetadata()
H A DInstructions.cpp4010 MDNode *ProfileData = getBranchWeightMDNode(SI); in init() local
4011 if (!ProfileData) in init()
4014 if (getNumBranchWeights(*ProfileData) != SI.getNumSuccessors()) { in init()
4020 if (!extractBranchWeights(ProfileData, Weights)) in init()
4094 if (MDNode *ProfileData = getBranchWeightMDNode(SI)) in getSuccessorWeight() local
4095 if (ProfileData->getNumOperands() == SI.getNumSuccessors() + 1) in getSuccessorWeight()
4096 return mdconst::extract<ConstantInt>(ProfileData->getOperand(idx + 1)) in getSuccessorWeight()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfDataUtils.h28 bool isBranchWeightMD(const MDNode *ProfileData);
64 bool hasBranchWeightOrigin(const MDNode *ProfileData);
67 unsigned getBranchWeightOffset(const MDNode *ProfileData);
69 unsigned getNumBranchWeights(const MDNode &ProfileData);
77 bool extractBranchWeights(const MDNode *ProfileData,
82 void extractFromBranchWeightMD32(const MDNode *ProfileData,
87 void extractFromBranchWeightMD64(const MDNode *ProfileData,
115 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalWeights);
/freebsd/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()
131 int __llvm_profile_merge_from_buffer(const char *ProfileData, in __llvm_profile_merge_from_buffer() argument
141 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_merge_from_buffer()
151 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_merge_from_buffer()
247 if (SrcValueProfData >= ProfileData + ProfileSize) in __llvm_profile_merge_from_buffer()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h16 #include "llvm/ProfileData/InstrProf.h"
41 /// Construct a ProfileData vector used to correlate raw instrumentation data
50 /// Return the number of ProfileData elements.
124 /// pointer type so that the ProfileData vector can be materialized.
131 /// Return a pointer to the underlying ProfileData vector that this class
133 const RawInstrProf::ProfileData<IntPtrT> *getDataPointer() const {
137 /// Return the number of ProfileData elements.
145 std::vector<RawInstrProf::ProfileData<IntPtrT>> Data;
193 /// probes and construct the ProfileData vector and Names string.
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.h1269 template <class IntPtrT> struct alignas(8) ProfileData { struct
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp132 for (const auto &ProfileData : *V) { in EmitKeyDataLength()
133 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength()
141 M += ValueProfData::getSize(ProfileData.second); in EmitKeyDataLength()
156 for (const auto &ProfileData : *V) { in EmitData()
157 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData()
158 if (NamedInstrProfRecord::hasCSFlagInHash(ProfileData.first)) in EmitData()
163 LE.write<uint64_t>(ProfileData.first); // Function hash in EmitData()
174 ValueProfData::serializeFrom(ProfileData.second); in EmitData()
H A DInstrProfReader.cpp544 for (const RawInstrProf::ProfileData<IntPtrT> *I = Data; I != DataEnd; ++I) { in createSymtab()
610 auto DataSize = NumData * sizeof(RawInstrProf::ProfileData<IntPtrT>); in readHeader()
647 Data = reinterpret_cast<const RawInstrProf::ProfileData<IntPtrT> *>( in readHeader()
H A DInstrProfCorrelator.cpp443 using RawProfData = RawInstrProf::ProfileData<IntPtrT>; in correlateProfileDataImpl()
/freebsd/contrib/llvm-project/llvm/include/
H A Dmodule.modulemap312 umbrella "llvm/ProfileData"
315 textual header "llvm/ProfileData/InstrProfData.inc"
316 textual header "llvm/ProfileData/MemProfData.inc"
317 textual header "llvm/ProfileData/MIBEntryDef.inc"
/freebsd/lib/clang/libllvm/
H A DMakefile1055 SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp
1056 SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp
1057 SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp
1058 SRCS_MIN+= ProfileData/GCOV.cpp
1059 SRCS_MIN+= ProfileData/InstrProf.cpp
1060 SRCS_MIN+= ProfileData/InstrProfCorrelator.cpp
1061 SRCS_MIN+= ProfileData/InstrProfReader.cpp
1062 SRCS_MIN+= ProfileData/InstrProfWriter.cpp
1063 SRCS_MIN+= ProfileData/ItaniumManglingCanonicalizer.cpp
1064 SRCS_MIN+= ProfileData/MemProf.cpp
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp920 if (MDNode *ProfileData = getValidBranchWeightMDNode(*Term)) { in parseLoopLatchICmp()
922 extractBranchWeights(ProfileData, Weights); in parseLoopLatchICmp()
1002 if (MDNode *ProfileData = getValidBranchWeightMDNode(*Term)) { isLoopProfitableToPredicate() local
/freebsd/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/contrib/llvm-project/
H A DFREEBSD-Xlist613 llvm/lib/ProfileData/CMakeLists.txt
614 llvm/lib/ProfileData/Coverage/CMakeLists.txt