/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 67 SI.setMetadata(LLVMContext::MD_prof, in handleSwitchExpect() 120 BI.setMetadata(LLVMContext::MD_prof, Node); in handleBranchExpect()
|
D | LoopUnswitch.cpp | 699 case LLVMContext::MD_prof: in copyMetadata()
|
D | JumpThreading.cpp | 1662 LLVMContext::MD_prof, in UpdateBlockFreqAndEdgeWeight()
|
/external/llvm/docs/ |
D | BranchWeightMetadata.rst | 13 ``TerminatorInst`` as a ``MDNode`` of the ``MD_prof`` kind. The first operator 123 optimization, ``MD_prof`` nodes can also be assigned to a function definition.
|
/external/llvm/include/llvm/IR/ |
D | LLVMContext.h | 51 MD_prof = 2, // "prof" enumerator
|
D | IRBuilder.h | 606 I->setMetadata(LLVMContext::MD_prof, Weights); in addBranchMetadata()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 154 BI->setMetadata(LLVMContext::MD_prof, VeryLikelyWeights); in buildCFICheck()
|
D | SampleProfile.cpp | 1059 TI->setMetadata(llvm::LLVMContext::MD_prof, in propagateWeights()
|
/external/llvm/lib/IR/ |
D | LLVMContext.cpp | 48 assert(ProfID == MD_prof && "prof kind id drifted"); (void)ProfID; in LLVMContext()
|
D | Function.cpp | 1004 setMetadata(LLVMContext::MD_prof, MDB.createFunctionEntryCount(Count)); in setEntryCount() 1008 MDNode *MD = getMetadata(LLVMContext::MD_prof); in getEntryCount()
|
D | Instructions.cpp | 1083 MDNode *ProfileData = getMetadata(LLVMContext::MD_prof); in swapSuccessors() 1090 setMetadata(LLVMContext::MD_prof, in swapSuccessors()
|
D | Verifier.cpp | 1473 if (MDs[i].first == LLVMContext::MD_prof) { in VerifyFunctionMetadata()
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 141 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator() 161 SI->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator() 219 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator() 227 NewBr->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator()
|
D | SimplifyCFG.cpp | 708 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in SimplifyEqualityComparisonWithOnlyPredecessor() 728 SI->setMetadata(LLVMContext::MD_prof, in SimplifyEqualityComparisonWithOnlyPredecessor() 802 MDNode *ProfMD = I->getMetadata(LLVMContext::MD_prof); in HasBranchWeights() 815 MDNode *MD = TI->getMetadata(LLVMContext::MD_prof); in GetBranchWeights() 1024 NewSI->setMetadata(LLVMContext::MD_prof, in FoldValueComparisonIntoPredecessors() 2043 MDNode *ProfileData = BI->getMetadata(LLVMContext::MD_prof); in ExtractBranchMetadata() 2299 PBI->setMetadata(LLVMContext::MD_prof, in FoldBranchToCommonDest() 2303 PBI->setMetadata(LLVMContext::MD_prof, nullptr); in FoldBranchToCommonDest() 2852 PBI->setMetadata(LLVMContext::MD_prof, in SimplifyCondBranchToCondBranch() 2929 NewBI->setMetadata(LLVMContext::MD_prof, in SimplifyTerminatorOnSelect() [all …]
|
D | BasicBlockUtils.cpp | 724 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThen() 773 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThenElse()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 342 case LLVMContext::MD_prof: in combineLoadToNewType() 414 case LLVMContext::MD_prof: in combineStoreToNewValue()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 2210 F->setMetadata(LLVMContext::MD_prof, P); in TEST_F() 2218 EXPECT_EQ(LLVMContext::MD_prof, MDs[1].first); in TEST_F() 2238 F->setMetadata(LLVMContext::MD_prof, P); in TEST_F() 2240 unsigned Known[] = {Context.getMDKindID("other2"), LLVMContext::MD_prof}; in TEST_F() 2244 EXPECT_EQ(P, F->getMetadata(LLVMContext::MD_prof)); in TEST_F() 2249 F->setMetadata(LLVMContext::MD_prof, nullptr); in TEST_F()
|
D | IRBuilderTest.cpp | 102 EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof)); in TEST_F()
|
/external/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 189 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | PGOInstrumentation.cpp | 659 TI->setMetadata(llvm::LLVMContext::MD_prof, in setBranchWeights()
|
/external/clang/lib/CodeGen/ |
D | CGExprComplex.cpp | 679 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul() 686 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul()
|
D | CGStmt.cpp | 1558 SwitchInsn->setMetadata(llvm::LLVMContext::MD_prof, in EmitSwitchStmt()
|
D | CGExpr.cpp | 2483 Branch->setMetadata(llvm::LLVMContext::MD_prof, Node); in EmitCheck() 2546 BI->setMetadata(llvm::LLVMContext::MD_prof, Node); in EmitCfiSlowPathCheck()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5344 auto *ProfileData = BI->getMetadata(LLVMContext::MD_prof); in extractBranchMetadata() 5512 Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext()) in splitBranchCondition() 5518 Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext()) in splitBranchCondition() 5545 Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext()) in splitBranchCondition() 5551 Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext()) in splitBranchCondition()
|