Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
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()
DLowerGuardIntrinsic.cpp72 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in MakeGuardControlFlowExplicit()
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp80 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
128 Node = MDB.createBranchWeights(LikelyBranchWeight, UnlikelyBranchWeight); in handleBranchExpect()
130 Node = MDB.createBranchWeights(UnlikelyBranchWeight, LikelyBranchWeight); in handleBranchExpect()
DLowerGuardIntrinsic.cpp70 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in MakeGuardControlFlowExplicit()
/external/llvm/include/llvm/IR/
DMDBuilder.h58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
61 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DProfileSummaryInfoTest.cpp174 CI2->setMetadata(llvm::LLVMContext::MD_prof, MDB.createBranchWeights({400})); in TEST_F()
202 CI2->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in TEST_F()
210 CI2->setMetadata(llvm::LLVMContext::MD_prof, MDB.createBranchWeights({400})); in TEST_F()
/external/llvm/lib/IR/
DMDBuilder.cpp37 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
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMDBuilder.h61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollPeel.cpp379 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThruWeight) in updateBranchWeights()
380 : MDB.createBranchWeights(FallThruWeight, ExitWeight); in updateBranchWeights()
657 HeaderIdx ? MDB.createBranchWeights(ExitWeight, BackEdgeWeight) in peelLoop()
658 : MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in peelLoop()
DLibCallsShrinkWrap.cpp488 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
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
DInstruction.cpp729 setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfWeight()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp306 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall()
316 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in promoteIndirectCall()
DHWAddressSanitizer.cpp438 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline()
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp151 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
DSampleProfile.cpp998 MDB.createBranchWeights(Weights)); in propagateWeights()
1040 MDB.createBranchWeights(Weights)); in propagateWeights()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp166 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
DSampleProfile.cpp1291 I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in propagateWeights()
1341 MDB.createBranchWeights(Weights)); in propagateWeights()
/external/llvm/lib/CodeGen/
DStackProtector.cpp434 .createBranchWeights(SuccessProb.getNumerator(), in InsertStackProtectors()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DStackProtector.cpp477 .createBranchWeights(SuccessProb.getNumerator(), in InsertStackProtectors()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp857 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights()
881 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp825 .createBranchWeights(Weights)); in SimplifyEqualityComparisonWithOnlyPredecessor()
1122 MDBuilder(BB->getContext()).createBranchWeights(MDWeights)); in FoldValueComparisonIntoPredecessors()
2417 MDBuilder(BI->getContext()).createBranchWeights(MDWeights)); in FoldBranchToCommonDest()
2949 .createBranchWeights(NewWeights[0], NewWeights[1])); in SimplifyCondBranchToCondBranch()
2989 .createBranchWeights(NewWeights[0], NewWeights[1])); in SimplifyCondBranchToCondBranch()
3046 .createBranchWeights(TrueWeight, FalseWeight)); in SimplifyTerminatorOnSelect()
3235 MDBuilder(SI->getContext()).createBranchWeights(MDWeights)); in TryToSimplifyUncondBranchWithICmpInIt()
3963 .createBranchWeights((uint32_t)TrueWeight, in TurnSwitchRangeIntoICmp()
4064 .createBranchWeights(MDWeights)); in EliminateDeadSwitchCases()
/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp561 Cmp, &*IP, false, MDBuilder(*C).createBranchWeights(1, 100000)); in InjectCoverageAtBlock()
DIndirectCallPromotion.cpp331 MDNode *BranchWeights = MDB.createBranchWeights( in createIfThenElse()
/external/llvm/unittests/IR/
DIRBuilderTest.cpp95 MDNode *Weights = MDBuilder(Ctx).createBranchWeights(42, 13); in TEST_F()

12