Lines Matching refs:LoopID
208 MDNode *LoopID = nullptr; in getLoopID() local
210 LoopID = getLoopLatch()->getTerminator()->getMetadata(LLVMContext::MD_loop); in getLoopID()
229 if (!LoopID) in getLoopID()
230 LoopID = MD; in getLoopID()
231 else if (MD != LoopID) in getLoopID()
235 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
236 LoopID->getOperand(0) != LoopID) in getLoopID()
238 return LoopID; in getLoopID()
241 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
242 assert(LoopID && "Loop ID should not be null"); in setLoopID()
243 assert(LoopID->getNumOperands() > 0 && "Loop ID needs at least one operand"); in setLoopID()
244 assert(LoopID->getOperand(0) == LoopID && "Loop ID should refer to itself"); in setLoopID()
247 getLoopLatch()->getTerminator()->setMetadata(LLVMContext::MD_loop, LoopID); in setLoopID()
256 TI->setMetadata(LLVMContext::MD_loop, LoopID); in setLoopID()
304 if (MDNode *LoopID = getLoopID()) in getStartLoc() local
305 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) in getStartLoc()
306 if (DILocation *L = dyn_cast<DILocation>(LoopID->getOperand(i))) in getStartLoc()