Home
last modified time | relevance | path

Searched refs:MD_prof (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp80 SI.setMetadata(LLVMContext::MD_prof, in handleSwitchExpect()
223 LLVMContext::MD_prof, in handlePhiDef()
227 LLVMContext::MD_prof, in handlePhiDef()
291 BSI.setMetadata(LLVMContext::MD_prof, Node); in handleBrSelExpect()
H A DJumpThreading.cpp274 PredBr->setMetadata(LLVMContext::MD_prof, in updatePredecessorProfileMetadata()
2123 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData()
2227 LLVMContext::MD_prof, in UpdateBlockFreqAndEdgeWeight()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstruction.cpp679 MDNode *ProfileData = getMetadata(LLVMContext::MD_prof); in swapProfMetadata()
691 setMetadata(LLVMContext::MD_prof, in swapProfMetadata()
735 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in updateProfWeight()
774 setMetadata(LLVMContext::MD_prof, MDNode::get(getContext(), Vals)); in updateProfWeight()
783 setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfWeight()
H A DLLVMContext.cpp41 {MD_prof, "prof"}, in LLVMContext()
H A DFunction.cpp1372 LLVMContext::MD_prof, in setEntryCount()
1382 MDNode *MD = getMetadata(LLVMContext::MD_prof); in getEntryCount()
1404 if (MDNode *MD = getMetadata(LLVMContext::MD_prof)) in getImportGUIDs()
H A DMetadata.cpp1321 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfMetadata()
1349 auto *ProfileData = getMetadata(LLVMContext::MD_prof); in extractProfTotalWeight()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DGuardUtils.cpp49 CheckBI->setMetadata(LLVMContext::MD_prof, in makeGuardControlFlowExplicit()
H A DLoopUnrollPeel.cpp381 LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode); in updateBranchWeights()
665 LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode); in peelLoop()
H A DCallPromotionUtils.cpp376 CS.getInstruction()->setMetadata(LLVMContext::MD_prof, nullptr); in promoteCall()
H A DBasicBlockUtils.cpp737 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThen()
779 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThenElse()
H A DLocal.cpp180 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator()
198 SI->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator()
271 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator()
279 NewBr->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator()
H A DSimplifyCFG.cpp786 SI->setMetadata(LLVMContext::MD_prof, N); in setBranchWeights()
800 I->setMetadata(LLVMContext::MD_prof, N); in setBranchWeights()
872 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in SimplifyEqualityComparisonWithOnlyPredecessor()
966 MDNode *ProfMD = I->getMetadata(LLVMContext::MD_prof); in HasBranchWeights()
979 MDNode *MD = TI->getMetadata(LLVMContext::MD_prof); in GetBranchWeights()
2779 PBI->setMetadata(LLVMContext::MD_prof, nullptr); in FoldBranchToCommonDest()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp317 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in promoteIndirectCall()
371 I->setMetadata(LLVMContext::MD_prof, nullptr); in processFunction()
H A DPGOMemOPSizeOpt.cpp360 MI->setMetadata(LLVMContext::MD_prof, nullptr); in perform()
H A DControlHeightReduction.cpp650 if (!checkMDProf(BI->getMetadata(LLVMContext::MD_prof), in checkBiasedBranch()
680 if (!checkMDProf(SI->getMetadata(LLVMContext::MD_prof), in checkBiasedSelect()
1839 MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in fixupBranchesAndSelects()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DLLVMContext.h82 MD_prof = 2, // "prof" enumerator
H A DIRBuilder.h816 I->setMetadata(LLVMContext::MD_prof, Weights); in addBranchMetadata()
867 unsigned WL[4] = {LLVMContext::MD_prof, LLVMContext::MD_unpredictable, in CreateCondBr()
2030 MDNode *Prof = MDFrom->getMetadata(LLVMContext::MD_prof);
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DCFGPrinter.h157 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp157 BI->setMetadata(LLVMContext::MD_prof, VeryLikelyWeights); in buildCFICheck()
H A DSampleProfile.cpp1305 I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in propagateWeights()
1354 TI->setMetadata(LLVMContext::MD_prof, in propagateWeights()
H A DLowerTypeTests.cpp728 NewBr->setMetadata(LLVMContext::MD_prof, in lowerTypeTestCall()
729 Br->getMetadata(LLVMContext::MD_prof)); in lowerTypeTestCall()
/freebsd-12.1/contrib/llvm/lib/ProfileData/
H A DInstrProf.cpp855 Inst.setMetadata(LLVMContext::MD_prof, MDNode::get(Ctx, Vals)); in annotateValueSite()
863 MDNode *MD = Inst.getMetadata(LLVMContext::MD_prof); in getValueProfDataFromInst()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprComplex.cpp709 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul()
716 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp485 case LLVMContext::MD_prof: in combineLoadToNewType()
546 case LLVMContext::MD_prof: in combineStoreToNewValue()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp254 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights()

12