Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp81 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
224 MDB.createBranchWeights(LikelyBranchWeight, UnlikelyBranchWeight)); in handlePhiDef()
228 MDB.createBranchWeights(UnlikelyBranchWeight, LikelyBranchWeight)); in handlePhiDef()
287 Node = MDB.createBranchWeights(LikelyBranchWeight, UnlikelyBranchWeight); in handleBrSelExpect()
289 Node = MDB.createBranchWeights(UnlikelyBranchWeight, LikelyBranchWeight); in handleBrSelExpect()
H A DJumpThreading.cpp276 .createBranchWeights(Weights)); in updatePredecessorProfileMetadata()
2228 MDBuilder(TI->getParent()->getContext()).createBranchWeights(Weights)); in UpdateBlockFreqAndEdgeWeight()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DLoopUnrollPeel.cpp379 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThruWeight) in updateBranchWeights()
380 : MDB.createBranchWeights(FallThruWeight, ExitWeight); in updateBranchWeights()
663 HeaderIdx ? MDB.createBranchWeights(ExitWeight, BackEdgeWeight) in peelLoop()
664 : MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in peelLoop()
H A DGuardUtils.cpp50 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
H A DLibCallsShrinkWrap.cpp488 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
H A DLocal.cpp200 createBranchWeights(Weights)); in ConstantFoldTerminator()
281 createBranchWeights(SICase->getValue().getZExtValue(), in ConstantFoldTerminator()
H A DCodeExtractor.cpp1181 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DMDBuilder.cpp38 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() function in MDBuilder
40 return createBranchWeights({TrueWeight, FalseWeight}); in createBranchWeights()
43 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() function in MDBuilder
H A DInstruction.cpp783 setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfWeight()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp307 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall()
317 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in promoteIndirectCall()
H A DHWAddressSanitizer.cpp544 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline()
823 false, MDBuilder(*C).createBranchWeights(1, 100000))); in emitPrologue()
H A DPGOInstrumentation.cpp1614 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfMetadata()
H A DAddressSanitizer.cpp1544 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress()
1566 Cmp, InsertBefore, false, MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress()
H A DControlHeightReduction.cpp1839 MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in fixupBranchesAndSelects()
H A DDataFlowSanitizer.cpp597 ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in doInitialization()
H A DMemorySanitizer.cpp917 ColdCallWeights = MDBuilder(*C).createBranchWeights(1, 1000); in initializeModule()
918 OriginStoreWeights = MDBuilder(*C).createBranchWeights(1, 1000); in initializeModule()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp166 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
H A DSampleProfile.cpp1305 I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in propagateWeights()
1355 MDB.createBranchWeights(Weights)); in propagateWeights()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DStackProtector.cpp484 .createBranchWeights(SuccessProb.getNumerator(), in InsertStackProtectors()
H A DSafeStack.cpp471 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
H A DCodeGenPrepare.cpp7026 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
7032 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
7059 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
7065 .createBranchWeights(TrueWeight, FalseWeight)); in splitBranchCondition()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1022 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
1046 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
H A DCGDeclCXX.cpp318 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
H A DCGExprComplex.cpp708 llvm::MDNode *BrWeight = MDHelper.createBranchWeights(1, (1U << 20) - 1); in EmitBinMul()

12