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));
385 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local386 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()
2476 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local2477 if (!WeightsNode) in doesBlockHaveProfileData()2480 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()2486 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()