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

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCFGPrinter.h156 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
157 if (!WeightsNode)
160 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
165 if (OpNo >= WeightsNode->getNumOperands())
168 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(OpNo));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp283 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
284 if (!WeightsNode)
292 if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1)
303 for (unsigned i = 1, e = WeightsNode->getNumOperands(); i != e; ++i) {
305 mdconst::dyn_extract<ConstantInt>(WeightsNode->getOperand(i));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp2189 MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof); local
2190 if (!WeightsNode)
2193 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
2199 return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1;

Completed in 143 milliseconds