| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 264 MDB.createBranchWeights(LikelyBranchWeightVal, in handlePhiDef() 268 MDB.createBranchWeights(UnlikelyBranchWeightVal, in handlePhiDef() 335 MDB.createBranchWeights(LikelyBranchWeightVal, UnlikelyBranchWeightVal); in handleBrSelExpect() 339 MDB.createBranchWeights(UnlikelyBranchWeightVal, LikelyBranchWeightVal); in handleBrSelExpect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 62 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 65 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() function in MDBuilder 39 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights() 42 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() function in MDBuilder
|
| H A D | ProfDataUtils.cpp | 189 MDNode *BranchWeights = MDB.createBranchWeights(Weights); in setBranchWeights()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | KCFI.cpp | 75 MDBuilder(Ctx).createBranchWeights(1, (1U << 20) - 1); in run()
|
| H A D | IndirectCallPromotion.cpp | 253 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall()
|
| H A D | HWAddressSanitizer.cpp | 901 MDBuilder(*C).createBranchWeights(1, 100000), &DTU, LI); in insertShadowTagCheck() 942 MDBuilder(*C).createBranchWeights(1, 100000), &DTU, LI); in instrumentMemAccessInline() 950 MDBuilder(*C).createBranchWeights(1, 100000), &DTU, in instrumentMemAccessInline() 959 MDBuilder(*C).createBranchWeights(1, 100000), &DTU, in instrumentMemAccessInline()
|
| H A D | AddressSanitizer.cpp | 1739 MDBuilder(*C).createBranchWeights(1, 100000)); in genAMDGPUReportBlock() 1814 Cmp, InsertBefore, false, MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress()
|
| H A D | DataFlowSanitizer.cpp | 1228 ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule() 1229 OriginStoreWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollRuntime.cpp | 187 BranchWeights = MDB.createBranchWeights(UnrolledLoopHeaderWeights); in ConnectProlog() 317 BranchWeights = MDB.createBranchWeights(1, Count - 1); in ConnectEpilog() 416 BranchWeights = MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in CloneLoopBlocks() 801 BranchWeights = MDB.createBranchWeights(EpilogHeaderWeights); in UnrollRuntimeLoopRemainder()
|
| H A D | GuardUtils.cpp | 53 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
|
| H A D | LibCallsShrinkWrap.cpp | 470 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
|
| H A D | Local.cpp | 323 .createBranchWeights(CaseWeight, DefWeight)); in ConstantFoldTerminator() 2855 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|
| H A D | CodeExtractor.cpp | 1503 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
|
| H A D | LoopUtils.cpp | 893 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | CrossDSOCFI.cpp | 143 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
|
| H A D | WholeProgramDevirt.cpp | 1207 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in applySingleImplDevirt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64LoopIdiomTransform.cpp | 491 MDBuilder(MinItCheckBr->getContext()).createBranchWeights(99, 1)); in expandFindMismatch() 537 .createBranchWeights(10, 90)); in expandFindMismatch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 672 .createBranchWeights(FailureProb.getNumerator(), in InsertStackProtectors()
|
| H A D | SafeStack.cpp | 473 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
|
| H A D | CodeGenPrepare.cpp | 8751 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8758 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8786 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8793 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 1333 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights() 1357 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
|
| H A D | CGDeclCXX.cpp | 430 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
|
| H A D | CGExprComplex.cpp | 802 llvm::MDNode *BrWeight = MDHelper.createBranchWeights(1, (1U << 20) - 1); in EmitBinMul()
|
| H A D | CGObjCGNU.cpp | 2074 MDHelper.createBranchWeights(1, 1 << 20)); in GenerateDirectMethodPrologue() 2109 MDHelper.createBranchWeights(1, 1 << 20)); in GenerateDirectMethodPrologue()
|