Home
last modified time | relevance | path

Searched refs:WeightsNode (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLowerExpectIntrinsic.cpp73 MDNode *WeightsNode = llvm::MDNode::get(Context, Vec); in HandleSwitchExpect() local
74 SI->setMetadata(LLVMContext::MD_prof, WeightsNode); in HandleSwitchExpect()
119 MDNode *WeightsNode = MDNode::get(Context, Ops); in HandleIfExpect() local
120 BI->setMetadata(LLVMContext::MD_prof, WeightsNode); in HandleIfExpect()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DBranchProbabilityInfo.cpp153 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local
154 if (!WeightsNode) in calcMetadataWeights()
159 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1) in calcMetadataWeights()
168 for (unsigned i = 1, e = WeightsNode->getNumOperands(); i != e; ++i) { in calcMetadataWeights()
169 ConstantInt *Weight = dyn_cast<ConstantInt>(WeightsNode->getOperand(i)); in calcMetadataWeights()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp189 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local
190 if (!WeightsNode) in calcMetadataWeights()
198 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1) in calcMetadataWeights()
207 for (unsigned i = 1, e = WeightsNode->getNumOperands(); i != e; ++i) { in calcMetadataWeights()
209 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(i)); in calcMetadataWeights()