Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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));
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp385 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local
386 if (!WeightsNode) in calcMetadataWeights()
394 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1) in calcMetadataWeights()
405 for (unsigned I = 1, E = WeightsNode->getNumOperands(); I != E; ++I) { in calcMetadataWeights()
407 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(I)); in calcMetadataWeights()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp2476 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local
2477 if (!WeightsNode) in doesBlockHaveProfileData()
2480 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()
2486 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()