Searched refs:WeightsNode (Results 1 – 3 of 3) sorted by relevance
264 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));
313 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local314 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()
2492 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local2493 if (!WeightsNode) in doesBlockHaveProfileData()2496 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()2502 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()