| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 107 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect() 251 MDB.createBranchWeights(LikelyBranchWeightVal, in handlePhiDef() 255 MDB.createBranchWeights(UnlikelyBranchWeightVal, in handlePhiDef() 321 MDB.createBranchWeights(LikelyBranchWeightVal, UnlikelyBranchWeightVal); in handleBrSelExpect() 324 MDB.createBranchWeights(UnlikelyBranchWeightVal, LikelyBranchWeightVal); in handleBrSelExpect()
|
| H A D | JumpThreading.cpp | 309 .createBranchWeights(Weights)); in updatePredecessorProfileMetadata() 2595 MDBuilder(TI->getParent()->getContext()).createBranchWeights(Weights)); in updateBlockFreqAndEdgeWeight()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
|
| /freebsd-13.1/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
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopPeel.cpp | 448 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThroughWeight) in updateBranchWeights() 449 : MDB.createBranchWeights(FallThroughWeight, ExitWeight); in updateBranchWeights() 490 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThroughWeight) in fixupBranchWeights() 491 : MDB.createBranchWeights(FallThroughWeight, ExitWeight); in fixupBranchWeights()
|
| H A D | GuardUtils.cpp | 53 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
|
| H A D | LoopUnrollRuntime.cpp | 538 HeaderIdx ? MDB.createBranchWeights(ExitWeight, BackEdgeWeight) in updateLatchBranchWeightsForRemainderLoop() 539 : MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in updateLatchBranchWeightsForRemainderLoop()
|
| H A D | LibCallsShrinkWrap.cpp | 488 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
|
| H A D | Local.cpp | 236 createBranchWeights(Weights)); in ConstantFoldTerminator() 321 createBranchWeights(SICase->getValue().getZExtValue(), in ConstantFoldTerminator() 2170 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|
| H A D | LoopUtils.cpp | 828 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()
|
| H A D | CodeExtractor.cpp | 1448 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
|
| H A D | SimplifyCFG.cpp | 819 N = MDBuilder(SI->getParent()->getContext()).createBranchWeights(Weights); in setBranchWeights() 833 .createBranchWeights(TrueWeight, FalseWeight); in setBranchWeights()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 313 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall() 323 MDB.createBranchWeights({static_cast<uint32_t>(Count)})); in promoteIndirectCall()
|
| H A D | HWAddressSanitizer.cpp | 852 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline() 859 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline() 867 MDBuilder(*C).createBranchWeights(1, 100000), in instrumentMemAccessInline() 877 MDBuilder(*C).createBranchWeights(1, 100000), in instrumentMemAccessInline()
|
| H A D | DataFlowSanitizer.cpp | 1097 ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule() 1098 OriginStoreWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule()
|
| H A D | PGOInstrumentation.cpp | 2045 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfMetadata()
|
| H A D | ControlHeightReduction.cpp | 1875 MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in fixupBranchesAndSelects()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | CrossDSOCFI.cpp | 162 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
|
| H A D | SampleProfile.cpp | 1493 MDB.createBranchWeights( in generateMDProfMetadata() 1505 I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(0)); in generateMDProfMetadata() 1560 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in generateMDProfMetadata()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 558 .createBranchWeights(SuccessProb.getNumerator(), in InsertStackProtectors()
|
| H A D | SafeStack.cpp | 482 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
|
| H A D | CodeGenPrepare.cpp | 8261 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8267 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8294 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8300 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 1077 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights() 1101 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
|
| H A D | CGDeclCXX.cpp | 417 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
|
| H A D | CGExprComplex.cpp | 734 llvm::MDNode *BrWeight = MDHelper.createBranchWeights(1, (1U << 20) - 1); in EmitBinMul()
|