Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DCFGPrinter.h157 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
158 if (!WeightsNode)
161 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
166 if (OpNo >= WeightsNode->getNumOperands())
169 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(OpNo));
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp254 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local
255 if (!WeightsNode) in calcMetadataWeights()
263 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1) in calcMetadataWeights()
274 for (unsigned i = 1, e = WeightsNode->getNumOperands(); i != e; ++i) { in calcMetadataWeights()
276 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(i)); in calcMetadataWeights()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp2116 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local
2117 if (!WeightsNode) in doesBlockHaveProfileData()
2120 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()
2126 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()