Searched refs:WeightsNode (Results 1 – 3 of 3) sorted by relevance
157 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));
254 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in calcMetadataWeights() local255 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()
2123 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); in doesBlockHaveProfileData() local2124 if (!WeightsNode) in doesBlockHaveProfileData()2127 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0)); in doesBlockHaveProfileData()2133 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1; in doesBlockHaveProfileData()