/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | LowerExpectIntrinsic.cpp | 110 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect() 270 MDB.createBranchWeights(LikelyBranchWeightVal, in handlePhiDef() 274 MDB.createBranchWeights(UnlikelyBranchWeightVal, in handlePhiDef() 341 MDB.createBranchWeights(LikelyBranchWeightVal, UnlikelyBranchWeightVal); in handleBrSelExpect() 345 MDB.createBranchWeights(UnlikelyBranchWeightVal, LikelyBranchWeightVal); in handleBrSelExpect()
|
H A D | JumpThreading.cpp | 305 .createBranchWeights(Weights)); in updatePredecessorProfileMetadata() 2619 MDBuilder(TI->getParent()->getContext()).createBranchWeights(Weights)); in updateBlockFreqAndEdgeWeight()
|
/openbsd/gnu/llvm/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);
|
/openbsd/gnu/llvm/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
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 253 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall() 263 MDB.createBranchWeights({static_cast<uint32_t>(Count)})); in promoteIndirectCall()
|
H A D | KCFI.cpp | 78 MDBuilder(Ctx).createBranchWeights(1, (1U << 20) - 1); in run()
|
H A D | HWAddressSanitizer.cpp | 865 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline() 872 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline() 880 MDBuilder(*C).createBranchWeights(1, 100000), in instrumentMemAccessInline() 890 MDBuilder(*C).createBranchWeights(1, 100000), in instrumentMemAccessInline()
|
H A D | DataFlowSanitizer.cpp | 1217 ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule() 1218 OriginStoreWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in initializeModule()
|
H A D | ControlHeightReduction.cpp | 1876 MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in fixupBranchesAndSelects()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | GuardUtils.cpp | 53 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
|
H A D | LoopPeel.cpp | 619 MDB.createBranchWeights(Info.Weights)); in updateBranchWeights() 676 MDB.createBranchWeights(Info.Weights)); in fixupBranchWeights()
|
H A D | LoopUnrollRuntime.cpp | 488 HeaderIdx ? MDB.createBranchWeights(ExitWeight, BackEdgeWeight) in updateLatchBranchWeightsForRemainderLoop() 489 : MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in updateLatchBranchWeightsForRemainderLoop()
|
H A D | LibCallsShrinkWrap.cpp | 489 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
|
H A D | Local.cpp | 232 createBranchWeights(Weights)); in ConstantFoldTerminator() 322 .createBranchWeights(CaseWeight, DefWeight)); in ConstantFoldTerminator() 2286 : MDB.createBranchWeights({uint32_t(TotalWeight)}); in createCallMatchingInvoke()
|
H A D | LoopUtils.cpp | 856 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()
|
H A D | CodeExtractor.cpp | 1500 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | CrossDSOCFI.cpp | 157 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
|
H A D | SampleProfile.cpp | 1665 MDB.createBranchWeights( in generateMDProfMetadata() 1677 I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(0)); in generateMDProfMetadata() 1757 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in generateMDProfMetadata()
|
H A D | WholeProgramDevirt.cpp | 1133 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in applySingleImplDevirt()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 562 .createBranchWeights(FailureProb.getNumerator(), in InsertStackProtectors()
|
H A D | SafeStack.cpp | 474 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
|
H A D | CodeGenPrepare.cpp | 8523 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8530 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8558 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition() 8565 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
|
/openbsd/gnu/llvm/clang/lib/CodeGen/ |
H A D | CodeGenPGO.cpp | 1088 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights() 1112 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
|
H A D | CGDeclCXX.cpp | 421 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
|
H A D | CGExprComplex.cpp | 791 llvm::MDNode *BrWeight = MDHelper.createBranchWeights(1, (1U << 20) - 1); in EmitBinMul()
|