| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 264 MDB.createBranchWeights(LikelyBranchWeightVal, in handlePhiDef() 269 MDB.createBranchWeights(UnlikelyBranchWeightVal, in handlePhiDef() 336 Node = MDB.createBranchWeights( in handleBrSelExpect() 340 Node = MDB.createBranchWeights(UnlikelyBranchWeightVal, in handleBrSelExpect()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 38 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() function in MDBuilder 40 return createBranchWeights({TrueWeight, FalseWeight}, IsExpected); in createBranchWeights() 45 return createBranchWeights((1U << 20) - 1, 1); in createLikelyBranchWeights() 50 return createBranchWeights(1, (1U << 20) - 1); in createUnlikelyBranchWeights() 53 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights, in createBranchWeights() function in MDBuilder
|
| H A D | ProfDataUtils.cpp | 269 MDNode *BranchWeights = MDB.createBranchWeights(Weights, IsExpected); in setBranchWeights()
|
| H A D | Instructions.cpp | 4136 return MDBuilder(SI.getParent()->getContext()).createBranchWeights(*Weights); in buildProfBranchWeightsMD()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 66 LLVM_ABI MDNode *createBranchWeights(uint32_t TrueWeight, 81 LLVM_ABI MDNode *createBranchWeights(ArrayRef<uint32_t> Weights,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollRuntime.cpp | 186 BranchWeights = MDB.createBranchWeights(UnrolledLoopHeaderWeights); in ConnectProlog() 316 BranchWeights = MDB.createBranchWeights(1, Count - 1); in ConnectEpilog() 415 BranchWeights = MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in CloneLoopBlocks() 805 BranchWeights = MDB.createBranchWeights(EpilogHeaderWeights); in UnrollRuntimeLoopRemainder()
|
| H A D | GuardUtils.cpp | 53 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
|
| H A D | Local.cpp | 326 .createBranchWeights(CaseWeight, DefWeight)); in ConstantFoldTerminator() 2937 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|
| H A D | CodeExtractor.cpp | 1215 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
|
| H A D | LoopUtils.cpp | 886 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()
|
| H A D | SimplifyCFG.cpp | 896 .createBranchWeights(Weights, IsExpected); in setBranchWeights() 910 .createBranchWeights(TrueWeight, FalseWeight, IsExpected); in setBranchWeights() 7385 .createBranchWeights(SuccWeight, OtherSuccWeight); in simplifySwitchOfCmpIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 610 static MDNode *createBranchWeights(LLVMContext &Context, uint64_t TrueWeight, in createBranchWeights() function 614 return MDB.createBranchWeights(scaleBranchCount(TrueWeight, Scale), in createBranchWeights() 624 createBranchWeights(CB.getContext(), Count, TotalCount - Count)); in promoteIndirectCall() 741 createBranchWeights(CB.getContext(), Candidate.Count, in tryToPromoteWithVTableCmp()
|
| H A D | InstrProfiling.cpp | 772 BranchWeight = MDB.createBranchWeights( in doSampling() 791 BranchWeight = MDB.createBranchWeights(1, config.Period - 1); in doSampling()
|
| H A D | TypeSanitizer.cpp | 627 MDNode *UnlikelyBW = MDBuilder(C).createBranchWeights(1, 100000); in instrumentWithShadowUpdate()
|
| H A D | SanitizerCoverage.cpp | 842 auto Weights = MDBuilder(*C).createBranchWeights(1, 100000); in CreateGateBranch()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopIdiomVectorize.cpp | 733 MDBuilder(MinItCheckBr->getContext()).createBranchWeights(99, 1)); in expandFindMismatch() 779 .createBranchWeights(10, 90)); in expandFindMismatch() 1288 MDBuilder(Ctx).createBranchWeights(10, 90)); in expandFindFirstByte()
|
| H A D | VPlanConstruction.cpp | 627 MDB.createBranchWeights(CheckBypassWeights, /*IsExpected=*/false); in attachCheckBlock()
|
| H A D | VPlanTransforms.cpp | 3345 MDB.createBranchWeights({1, VectorStep - 1}, /*IsExpected=*/false); in addBranchWeightToMiddleTerminator()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 687 .createBranchWeights(FailureProb.getNumerator(), in InsertStackProtectors()
|
| H A D | SafeStack.cpp | 472 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
|
| H A D | CodeGenPrepare.cpp | 9268 .createBranchWeights(TrueWeight, FalseWeight, in splitBranchCondition() 9276 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 9304 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 9311 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 1477 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights() 1501 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
|
| H A D | CGDeclCXX.cpp | 432 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
|