Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h427 bool Unreachable, MDNode *BranchWeights = nullptr,
433 MDNode *BranchWeights = nullptr,
438 Unreachable, BranchWeights, DTU, LI,
446 bool Unreachable, MDNode *BranchWeights = nullptr,
452 MDNode *BranchWeights = nullptr,
457 Unreachable, BranchWeights, DTU, LI,
479 Instruction **ElseTerm, MDNode *BranchWeights = nullptr,
485 MDNode *BranchWeights = nullptr,
490 ElseTerm, BranchWeights, DTU, LI);
523 bool UnreachableElse = false, MDNode *BranchWeights = nullptr,
[all …]
H A DCallPromotionUtils.h59 MDNode *BranchWeights = nullptr);
78 MDNode *BranchWeights);
111 MDNode *BranchWeights);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp91 const char *MDProfLabels::BranchWeights = "branch_weights"; member in llvm::MDProfLabels
104 return isTargetMD(ProfileData, MDProfLabels::BranchWeights, MinBWOps); in isBranchWeightMD()
222 if (ProfDataName->getString() == MDProfLabels::BranchWeights) { in extractProfTotalWeight()
269 MDNode *BranchWeights = MDB.createBranchWeights(Weights, IsExpected); in setBranchWeights() local
270 I.setMetadata(LLVMContext::MD_prof, BranchWeights); in setBranchWeights()
281 (ProfDataName->getString() != MDProfLabels::BranchWeights && in scaleProfData()
294 if (ProfDataName->getString() == MDProfLabels::BranchWeights && in scaleProfData()
H A DMDBuilder.cpp59 Vals[0] = createString(MDProfLabels::BranchWeights); in createBranchWeights()
H A DMetadata.cpp1205 if (AProfName == MDProfLabels::BranchWeights && in mergeDirectCallProfMetadata()
1206 BProfName == MDProfLabels::BranchWeights) { in mergeDirectCallProfMetadata()
1213 {MDHelper.createString(MDProfLabels::BranchWeights), in mergeDirectCallProfMetadata()
H A DVerifier.cpp5031 if (ProfName == MDProfLabels::BranchWeights) { in visitProfMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp288 MDNode *BranchWeights) { in versionCallSiteWithCond() argument
298 SplitBlockAndInsertIfThen(Cond, &CB, false, BranchWeights); in versionCallSiteWithCond()
337 SplitBlockAndInsertIfThenElse(Cond, &CB, &ThenTerm, &ElseTerm, BranchWeights); in versionCallSiteWithCond()
384 MDNode *BranchWeights) { in versionCallSite() argument
394 return versionCallSiteWithCond(CB, Cond, BranchWeights); in versionCallSite()
568 MDNode *BranchWeights) { in promoteCallWithIfThenElse() argument
573 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights); in promoteCallWithIfThenElse()
667 MDNode *BranchWeights) { in promoteCallWithVTableCmp() argument
679 CallBase &NewInst = versionCallSiteWithCond(CB, Cond, BranchWeights); in promoteCallWithVTableCmp()
H A DLoopUnrollRuntime.cpp182 MDNode *BranchWeights = nullptr; in ConnectProlog() local
186 BranchWeights = MDB.createBranchWeights(UnrolledLoopHeaderWeights); in ConnectProlog()
189 BranchWeights); in ConnectProlog()
312 MDNode *BranchWeights = nullptr; in ConnectEpilog() local
316 BranchWeights = MDB.createBranchWeights(1, Count - 1); in ConnectEpilog()
318 B.CreateCondBr(BrLoopExit, EpilogPreHeader, Exit, BranchWeights); in ConnectEpilog()
398 MDNode *BranchWeights = nullptr; in CloneLoopBlocks() local
415 BranchWeights = MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in CloneLoopBlocks()
417 Builder.CreateCondBr(IdxCmp, FirstLoopBB, InsertBot, BranchWeights); in CloneLoopBlocks()
801 MDNode *BranchWeights = nullptr; in UnrollRuntimeLoopRemainder() local
[all …]
H A DBasicBlockUtils.cpp1471 MDNode *BranchWeights, in SplitBlockAndInsertIfThen() argument
1477 /* UnreachableElse */ false, BranchWeights, DTU, LI); in SplitBlockAndInsertIfThen()
1484 MDNode *BranchWeights, in SplitBlockAndInsertIfElse() argument
1490 /* UnreachableElse */ Unreachable, BranchWeights, DTU, LI); in SplitBlockAndInsertIfElse()
1497 MDNode *BranchWeights, in SplitBlockAndInsertIfThenElse() argument
1503 /* UnreachableElse */ false, BranchWeights, DTU, LI); in SplitBlockAndInsertIfThenElse()
1512 MDNode *BranchWeights, DomTreeUpdater *DTU, LoopInfo *LI) { in SplitBlockAndInsertIfThenElse() argument
1562 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThenElse()
H A DLibCallsShrinkWrap.cpp469 MDNode *BranchWeights = in shrinkWrapCI() local
473 SplitBlockAndInsertIfThen(Cond, CI, false, BranchWeights, &DTU); in shrinkWrapCI()
H A DCodeExtractor.cpp1176 SmallVector<unsigned, 8> BranchWeights(TI->getNumSuccessors(), 0); in calculateNewCallTerminatorWeights() local
1208 BranchWeights[Weight.TargetNode.Index] = Weight.Amount; in calculateNewCallTerminatorWeights()
1215 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfDataUtils.h25 LLVM_ABI static const char *BranchWeights; member
H A DIRBuilder.h1203 MDNode *BranchWeights = nullptr,
1206 BranchWeights, Unpredictable));
1226 MDNode *BranchWeights = nullptr,
1229 BranchWeights, Unpredictable));
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanConstruction.cpp626 MDNode *BranchWeights = in attachCheckBlock() local
628 Term->addMetadata(LLVMContext::MD_prof, BranchWeights); in attachCheckBlock()
H A DVPlanTransforms.cpp3344 MDNode *BranchWeights = in addBranchWeightToMiddleTerminator() local
3346 MiddleTerm->addMetadata(LLVMContext::MD_prof, BranchWeights); in addBranchWeightToMiddleTerminator()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp3008 MDNode *BranchWeights = getBranchWeightMDNode(*SI); in tryToUnfoldSelectInCurrBB() local
3010 SplitBlockAndInsertIfThen(Cond, SI, false, BranchWeights); in tryToUnfoldSelectInCurrBB()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp7039 if (ProfName != MDProfLabels::BranchWeights) in materialize()