Lines Matching refs:LoopID
497 MDNode *LoopID = nullptr; in getLoopID() local
509 if (!LoopID) in getLoopID()
510 LoopID = MD; in getLoopID()
511 else if (MD != LoopID) in getLoopID()
514 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
515 LoopID->getOperand(0) != LoopID) in getLoopID()
517 return LoopID; in getLoopID()
520 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
521 assert((!LoopID || LoopID->getNumOperands() > 0) && in setLoopID()
523 assert((!LoopID || LoopID->getOperand(0) == LoopID) && in setLoopID()
529 BB->getTerminator()->setMetadata(LLVMContext::MD_loop, LoopID); in setLoopID()
537 MDNode *LoopID = getLoopID(); in setLoopAlreadyUnrolled() local
539 Context, LoopID, {"llvm.loop.unroll."}, {DisableUnrollMD}); in setLoopAlreadyUnrolled()
553 MDNode *LoopID = getLoopID(); in setLoopMustProgress() local
555 makePostTransformationMetadata(Context, LoopID, {}, {MustProgressMD}); in setLoopMustProgress()
638 if (MDNode *LoopID = getLoopID()) { in getLocRange() local
643 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getLocRange()
644 if (DILocation *L = dyn_cast<DILocation>(LoopID->getOperand(i))) { in getLocRange()
999 MDNode *llvm::findOptionMDForLoopID(MDNode *LoopID, StringRef Name) { in findOptionMDForLoopID() argument
1001 if (!LoopID) in findOptionMDForLoopID()
1005 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in findOptionMDForLoopID()
1006 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in findOptionMDForLoopID()
1009 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in findOptionMDForLoopID()
1010 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in findOptionMDForLoopID()