Lines Matching defs:LoopID
503 MDNode *LoopID = nullptr;
515 if (!LoopID)
516 LoopID = MD;
517 else if (MD != LoopID)
520 if (!LoopID || LoopID->getNumOperands() == 0 ||
521 LoopID->getOperand(0) != LoopID)
523 return LoopID;
526 void Loop::setLoopID(MDNode *LoopID) const {
527 assert((!LoopID || LoopID->getNumOperands() > 0) &&
529 assert((!LoopID || LoopID->getOperand(0) == LoopID) &&
535 BB->getTerminator()->setMetadata(LLVMContext::MD_loop, LoopID);
543 MDNode *LoopID = getLoopID();
545 Context, LoopID, {"llvm.loop.unroll."}, {DisableUnrollMD});
559 MDNode *LoopID = getLoopID();
561 makePostTransformationMetadata(Context, LoopID, {}, {MustProgressMD});
636 if (MDNode *LoopID = getLoopID()) {
641 for (const MDOperand &MDO : llvm::drop_begin(LoopID->operands())) {
1029 MDNode *llvm::findOptionMDForLoopID(MDNode *LoopID, StringRef Name) {
1031 if (!LoopID)
1035 assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
1036 assert(LoopID->getOperand(0) == LoopID && "invalid loop id");
1039 for (const MDOperand &MDO : llvm::drop_begin(LoopID->operands())) {
1165 // Reserve first location for self reference to the LoopID metadata node.