Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DCFGPrinter.h264 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
265 if (!WeightsNode)
268 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
273 if (OpNo >= WeightsNode->getNumOperands())
276 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(OpNo));
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp313 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local
314 if (!WeightsNode) in calcMetadataWeights()
322 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1) in calcMetadataWeights()
333 for (unsigned I = 1, E = WeightsNode->getNumOperands(); I != E; ++I) { in calcMetadataWeights()
335 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(I)); in calcMetadataWeights()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp2492 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local
2493 if (!WeightsNode) in doesBlockHaveProfileData()
2496 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()
2502 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()