Home
last modified time | relevance | path

Searched refs:MD_prof (Results 1 – 24 of 24) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp67 SI.setMetadata(LLVMContext::MD_prof, in handleSwitchExpect()
120 BI.setMetadata(LLVMContext::MD_prof, Node); in handleBranchExpect()
DLoopUnswitch.cpp699 case LLVMContext::MD_prof: in copyMetadata()
DJumpThreading.cpp1662 LLVMContext::MD_prof, in UpdateBlockFreqAndEdgeWeight()
/external/llvm/docs/
DBranchWeightMetadata.rst13 ``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/
DLLVMContext.h51 MD_prof = 2, // "prof" enumerator
DIRBuilder.h606 I->setMetadata(LLVMContext::MD_prof, Weights); in addBranchMetadata()
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp154 BI->setMetadata(LLVMContext::MD_prof, VeryLikelyWeights); in buildCFICheck()
DSampleProfile.cpp1059 TI->setMetadata(llvm::LLVMContext::MD_prof, in propagateWeights()
/external/llvm/lib/IR/
DLLVMContext.cpp48 assert(ProfID == MD_prof && "prof kind id drifted"); (void)ProfID; in LLVMContext()
DFunction.cpp1004 setMetadata(LLVMContext::MD_prof, MDB.createFunctionEntryCount(Count)); in setEntryCount()
1008 MDNode *MD = getMetadata(LLVMContext::MD_prof); in getEntryCount()
DInstructions.cpp1083 MDNode *ProfileData = getMetadata(LLVMContext::MD_prof); in swapSuccessors()
1090 setMetadata(LLVMContext::MD_prof, in swapSuccessors()
DVerifier.cpp1473 if (MDs[i].first == LLVMContext::MD_prof) { in VerifyFunctionMetadata()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp141 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()
DSimplifyCFG.cpp708 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 …]
DBasicBlockUtils.cpp724 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThen()
773 HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights); in SplitBlockAndInsertIfThenElse()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp342 case LLVMContext::MD_prof: in combineLoadToNewType()
414 case LLVMContext::MD_prof: in combineStoreToNewValue()
/external/llvm/unittests/IR/
DMetadataTest.cpp2210 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()
DIRBuilderTest.cpp102 EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof)); in TEST_F()
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp659 TI->setMetadata(llvm::LLVMContext::MD_prof, in setBranchWeights()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp189 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp679 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul()
686 Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight); in EmitBinMul()
DCGStmt.cpp1558 SwitchInsn->setMetadata(llvm::LLVMContext::MD_prof, in EmitSwitchStmt()
DCGExpr.cpp2483 Branch->setMetadata(llvm::LLVMContext::MD_prof, Node); in EmitCheck()
2546 BI->setMetadata(llvm::LLVMContext::MD_prof, Node); in EmitCfiSlowPathCheck()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5344 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()