Home
last modified time | relevance | path

Searched refs:createBranchWeights (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp264 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 DMDBuilder.cpp38 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 DProfDataUtils.cpp269 MDNode *BranchWeights = MDB.createBranchWeights(Weights, IsExpected); in setBranchWeights()
H A DInstructions.cpp4136 return MDBuilder(SI.getParent()->getContext()).createBranchWeights(*Weights); in buildProfBranchWeightsMD()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMDBuilder.h66 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 DLoopUnrollRuntime.cpp186 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 DGuardUtils.cpp53 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
H A DLocal.cpp326 .createBranchWeights(CaseWeight, DefWeight)); in ConstantFoldTerminator()
2937 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
H A DCodeExtractor.cpp1215 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
H A DLoopUtils.cpp886 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()
H A DSimplifyCFG.cpp896 .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 DIndirectCallPromotion.cpp610 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 DInstrProfiling.cpp772 BranchWeight = MDB.createBranchWeights( in doSampling()
791 BranchWeight = MDB.createBranchWeights(1, config.Period - 1); in doSampling()
H A DTypeSanitizer.cpp627 MDNode *UnlikelyBW = MDBuilder(C).createBranchWeights(1, 100000); in instrumentWithShadowUpdate()
H A DSanitizerCoverage.cpp842 auto Weights = MDBuilder(*C).createBranchWeights(1, 100000); in CreateGateBranch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp733 MDBuilder(MinItCheckBr->getContext()).createBranchWeights(99, 1)); in expandFindMismatch()
779 .createBranchWeights(10, 90)); in expandFindMismatch()
1288 MDBuilder(Ctx).createBranchWeights(10, 90)); in expandFindFirstByte()
H A DVPlanConstruction.cpp627 MDB.createBranchWeights(CheckBypassWeights, /*IsExpected=*/false); in attachCheckBlock()
H A DVPlanTransforms.cpp3345 MDB.createBranchWeights({1, VectorStep - 1}, /*IsExpected=*/false); in addBranchWeightToMiddleTerminator()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp687 .createBranchWeights(FailureProb.getNumerator(), in InsertStackProtectors()
H A DSafeStack.cpp472 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
H A DCodeGenPrepare.cpp9268 .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 DCodeGenPGO.cpp1477 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
1501 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
H A DCGDeclCXX.cpp432 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()