| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 81 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 D | JumpThreading.cpp | 276 .createBranchWeights(Weights)); in updatePredecessorProfileMetadata() 2228 MDBuilder(TI->getParent()->getContext()).createBranchWeights(Weights)); in UpdateBlockFreqAndEdgeWeight()
|
| /freebsd-12.1/contrib/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-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollPeel.cpp | 379 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 D | GuardUtils.cpp | 50 MDB.createBranchWeights(PredicatePassBranchWeight, 1)); in makeGuardControlFlowExplicit()
|
| H A D | LibCallsShrinkWrap.cpp | 488 MDBuilder(CI->getContext()).createBranchWeights(1, 2000); in shrinkWrapCI()
|
| H A D | Local.cpp | 200 createBranchWeights(Weights)); in ConstantFoldTerminator() 281 createBranchWeights(SICase->getValue().getZExtValue(), in ConstantFoldTerminator()
|
| H A D | CodeExtractor.cpp | 1181 MDBuilder(TI->getContext()).createBranchWeights(BranchWeights)); in calculateNewCallTerminatorWeights()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 38 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 D | Instruction.cpp | 783 setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfWeight()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 307 MDNode *BranchWeights = MDB.createBranchWeights( in promoteIndirectCall() 317 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in promoteIndirectCall()
|
| H A D | HWAddressSanitizer.cpp | 544 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentMemAccessInline() 823 false, MDBuilder(*C).createBranchWeights(1, 100000))); in emitPrologue()
|
| H A D | PGOInstrumentation.cpp | 1614 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfMetadata()
|
| H A D | AddressSanitizer.cpp | 1544 MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress() 1566 Cmp, InsertBefore, false, MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress()
|
| H A D | ControlHeightReduction.cpp | 1839 MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in fixupBranchesAndSelects()
|
| H A D | DataFlowSanitizer.cpp | 597 ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000); in doInitialization()
|
| H A D | MemorySanitizer.cpp | 917 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 D | CrossDSOCFI.cpp | 166 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); in runOnModule()
|
| H A D | SampleProfile.cpp | 1305 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 D | StackProtector.cpp | 484 .createBranchWeights(SuccessProb.getNumerator(), in InsertStackProtectors()
|
| H A D | SafeStack.cpp | 471 .createBranchWeights(SuccessProb.getNumerator(), in checkStackGuard()
|
| H A D | CodeGenPrepare.cpp | 7026 .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 D | CodeGenPGO.cpp | 1022 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createProfileWeights() 1046 return MDHelper.createBranchWeights(ScaledWeights); in createProfileWeights()
|
| H A D | CGDeclCXX.cpp | 318 Weights = MDHelper.createBranchWeights(1, NumInits - 1); in EmitCXXGuardedInitBranch()
|
| H A D | CGExprComplex.cpp | 708 llvm::MDNode *BrWeight = MDHelper.createBranchWeights(1, (1U << 20) - 1); in EmitBinMul()
|