| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ProfDataUtils.cpp | 68 static void extractFromBranchWeightMD(const MDNode *ProfileData, in extractFromBranchWeightMD() argument 70 assert(isBranchWeightMD(ProfileData) && "wrong metadata"); in extractFromBranchWeightMD() 72 unsigned NOps = ProfileData->getNumOperands(); in extractFromBranchWeightMD() 73 unsigned WeightsIdx = getBranchWeightOffset(ProfileData); in extractFromBranchWeightMD() 79 mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(Idx)); in extractFromBranchWeightMD() 103 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() argument 104 return isTargetMD(ProfileData, MDProfLabels::BranchWeights, MinBWOps); in isBranchWeightMD() 107 bool isValueProfileMD(const MDNode *ProfileData) { in isValueProfileMD() argument 108 return isTargetMD(ProfileData, MDProfLabels::ValueProfile, MinVPOps); in isValueProfileMD() 112 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() local [all …]
|
| H A D | Instruction.cpp | 1333 MDNode *ProfileData = getBranchWeightMDNode(*this); in swapProfMetadata() local 1334 if (!ProfileData) in swapProfMetadata() 1336 unsigned FirstIdx = getBranchWeightOffset(ProfileData); in swapProfMetadata() 1337 if (ProfileData->getNumOperands() != 2 + FirstIdx) in swapProfMetadata() 1343 if (ProfileData->getNumOperands() > SecondIdx + 1) in swapProfMetadata() 1346 Ops.push_back(ProfileData->getOperand(Idx)); in swapProfMetadata() 1349 Ops.push_back(ProfileData->getOperand(SecondIdx)); in swapProfMetadata() 1350 Ops.push_back(ProfileData->getOperand(FirstIdx)); in swapProfMetadata() 1352 MDNode::get(ProfileData->getContext(), Ops)); in swapProfMetadata()
|
| H A D | Instructions.cpp | 4140 MDNode *ProfileData = getBranchWeightMDNode(SI); in init() local 4141 if (!ProfileData) in init() 4144 if (getNumBranchWeights(*ProfileData) != SI.getNumSuccessors()) { in init() 4150 if (!extractBranchWeights(ProfileData, Weights)) in init() 4224 if (MDNode *ProfileData = getBranchWeightMDNode(SI)) in getSuccessorWeight() local 4225 if (ProfileData->getNumOperands() == SI.getNumSuccessors() + 1) in getSuccessorWeight() 4226 return mdconst::extract<ConstantInt>(ProfileData->getOperand(idx + 1)) in getSuccessorWeight()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ProfDataUtils.h | 37 LLVM_ABI bool isBranchWeightMD(const MDNode *ProfileData); 40 LLVM_ABI bool isValueProfileMD(const MDNode *ProfileData); 76 LLVM_ABI bool hasBranchWeightOrigin(const MDNode *ProfileData); 79 LLVM_ABI unsigned getBranchWeightOffset(const MDNode *ProfileData); 81 LLVM_ABI unsigned getNumBranchWeights(const MDNode &ProfileData); 89 LLVM_ABI bool extractBranchWeights(const MDNode *ProfileData, 94 LLVM_ABI void extractFromBranchWeightMD32(const MDNode *ProfileData, 99 LLVM_ABI void extractFromBranchWeightMD64(const MDNode *ProfileData, 127 LLVM_ABI bool extractProfTotalWeight(const MDNode *ProfileData,
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingMerge.c | 51 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 140 __llvm_profile_header *Header = (__llvm_profile_header *)ProfileData; in __llvm_profile_merge_from_buffer() 145 (__llvm_profile_data *)(ProfileData + sizeof(__llvm_profile_header) + in __llvm_profile_merge_from_buffer() 246 if (SrcValueProfData >= (uintptr_t)ProfileData + ProfileSize) in __llvm_profile_merge_from_buffer()
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | InstrProfWriter.cpp | 72 for (const auto &ProfileData : *V) { in EmitKeyDataLength() 73 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitKeyDataLength() 81 M += ValueProfData::getSize(ProfileData.second); in EmitKeyDataLength() 96 for (const auto &ProfileData : *V) { in EmitData() 97 const InstrProfRecord &ProfRecord = ProfileData.second; in EmitData() 98 if (NamedInstrProfRecord::hasCSFlagInHash(ProfileData.first)) in EmitData() 103 LE.write<uint64_t>(ProfileData.first); // Function hash in EmitData() 114 ValueProfData::serializeFrom(ProfileData.second); in EmitData()
|
| H A D | InstrProfReader.cpp | 556 for (const RawInstrProf::ProfileData<IntPtrT> *I = Data; I != DataEnd; ++I) { in createSymtab() 622 auto DataSize = NumData * sizeof(RawInstrProf::ProfileData<IntPtrT>); in readHeader() 680 Data = reinterpret_cast<const RawInstrProf::ProfileData<IntPtrT> *>( in readHeader()
|
| H A D | InstrProfCorrelator.cpp | 467 using RawProfData = RawInstrProf::ProfileData<IntPtrT>; in correlateProfileDataImpl()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | InstrProfCorrelator.h | 138 const RawInstrProf::ProfileData<IntPtrT> *getDataPointer() const { 150 std::vector<RawInstrProf::ProfileData<IntPtrT>> Data;
|
| H A D | InstrProfReader.h | 353 const RawInstrProf::ProfileData<IntPtrT> *Data; 354 const RawInstrProf::ProfileData<IntPtrT> *DataEnd;
|
| H A D | InstrProfData.inc | 34 * #include "llvm/ProfileData/InstrProfData.inc" 42 * #include "llvm/ProfileData/InstrProfData.inc" 49 * #include "llvm/ProfileData/InstrProfData.inc"
|
| H A D | InstrProf.h | 1332 template <class IntPtrT> struct alignas(8) ProfileData { struct
|
| /freebsd/contrib/llvm-project/llvm/include/ |
| H A D | module.modulemap | 320 umbrella "llvm/ProfileData" 323 textual header "llvm/ProfileData/InstrProfData.inc" 324 textual header "llvm/ProfileData/MemProfData.inc" 325 textual header "llvm/ProfileData/MIBEntryDef.inc"
|
| /freebsd/lib/clang/libllvm/ |
| H A D | Makefile | 1155 SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp 1156 SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp 1157 SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp 1158 SRCS_MIN+= ProfileData/DataAccessProf.cpp 1159 SRCS_MIN+= ProfileData/GCOV.cpp 1160 SRCS_MIN+= ProfileData/IndexedMemProfData.cpp 1161 SRCS_MIN+= ProfileData/InstrProf.cpp 1162 SRCS_MIN+= ProfileData/InstrProfCorrelator.cpp 1163 SRCS_MIN+= ProfileData/InstrProfReader.cpp 1164 SRCS_MIN+= ProfileData/InstrProfWriter.cpp [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPredication.cpp | 919 if (MDNode *ProfileData = getValidBranchWeightMDNode(*Term)) { in isLoopProfitableToPredicate() local 921 extractBranchWeights(ProfileData, Weights); in isLoopProfitableToPredicate()
|
| /freebsd/contrib/llvm-project/compiler-rt/include/profile/ |
| H A D | InstrProfData.inc | 34 * #include "llvm/ProfileData/InstrProfData.inc" 42 * #include "llvm/ProfileData/InstrProfData.inc" 49 * #include "llvm/ProfileData/InstrProfData.inc"
|
| /freebsd/contrib/llvm-project/lld/include/lld/Common/ |
| H A D | BPSectionOrdererBase.inc | 33 #include "llvm/ProfileData/InstrProfReader.h"
|
| /freebsd/contrib/llvm-project/ |
| H A D | FREEBSD-Xlist | 857 llvm/lib/ProfileData/CMakeLists.txt 858 llvm/lib/ProfileData/Coverage/CMakeLists.txt
|