| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BasicBlockUtils.h | 427 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 D | CallPromotionUtils.h | 59 MDNode *BranchWeights = nullptr); 78 MDNode *BranchWeights); 111 MDNode *BranchWeights);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ProfDataUtils.cpp | 91 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 D | MDBuilder.cpp | 59 Vals[0] = createString(MDProfLabels::BranchWeights); in createBranchWeights()
|
| H A D | Metadata.cpp | 1205 if (AProfName == MDProfLabels::BranchWeights && in mergeDirectCallProfMetadata() 1206 BProfName == MDProfLabels::BranchWeights) { in mergeDirectCallProfMetadata() 1213 {MDHelper.createString(MDProfLabels::BranchWeights), in mergeDirectCallProfMetadata()
|
| H A D | Verifier.cpp | 5031 if (ProfName == MDProfLabels::BranchWeights) { in visitProfMetadata()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 288 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 D | LoopUnrollRuntime.cpp | 182 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 D | BasicBlockUtils.cpp | 1471 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 D | LibCallsShrinkWrap.cpp | 469 MDNode *BranchWeights = in shrinkWrapCI() local 473 SplitBlockAndInsertIfThen(Cond, CI, false, BranchWeights, &DTU); in shrinkWrapCI()
|
| H A D | CodeExtractor.cpp | 1176 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 D | ProfDataUtils.h | 25 LLVM_ABI static const char *BranchWeights; member
|
| H A D | IRBuilder.h | 1203 MDNode *BranchWeights = nullptr, 1206 BranchWeights, Unpredictable)); 1226 MDNode *BranchWeights = nullptr, 1229 BranchWeights, Unpredictable));
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanConstruction.cpp | 626 MDNode *BranchWeights = in attachCheckBlock() local 628 Term->addMetadata(LLVMContext::MD_prof, BranchWeights); in attachCheckBlock()
|
| H A D | VPlanTransforms.cpp | 3344 MDNode *BranchWeights = in addBranchWeightToMiddleTerminator() local 3346 MiddleTerm->addMetadata(LLVMContext::MD_prof, BranchWeights); in addBranchWeightToMiddleTerminator()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 3008 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 D | BitcodeReader.cpp | 7039 if (ProfName != MDProfLabels::BranchWeights) in materialize()
|