Lines Matching refs:TheLoop
163 Loop *TheLoop, bool HasFunNoNaNAttr, in AddReductionVar() argument
169 if (Phi->getParent() != TheLoop->getHeader()) in AddReductionVar()
174 Value *RdxStart = Phi->getIncomingValueForBlock(TheLoop->getLoopPreheader()); in AddReductionVar()
297 if (!TheLoop->contains(Parent)) { in AddReductionVar()
473 bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop, in isReductionPHI() argument
476 BasicBlock *Header = TheLoop->getHeader(); in isReductionPHI()
481 if (AddReductionVar(Phi, RK_IntegerAdd, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
485 if (AddReductionVar(Phi, RK_IntegerMult, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
489 if (AddReductionVar(Phi, RK_IntegerOr, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
493 if (AddReductionVar(Phi, RK_IntegerAnd, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
497 if (AddReductionVar(Phi, RK_IntegerXor, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
501 if (AddReductionVar(Phi, RK_IntegerMinMax, TheLoop, HasFunNoNaNAttr, in isReductionPHI()
506 if (AddReductionVar(Phi, RK_FloatMult, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
510 if (AddReductionVar(Phi, RK_FloatAdd, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
514 if (AddReductionVar(Phi, RK_FloatMinMax, TheLoop, HasFunNoNaNAttr, RedDes)) { in isReductionPHI()
522 bool RecurrenceDescriptor::isFirstOrderRecurrence(PHINode *Phi, Loop *TheLoop, in isFirstOrderRecurrence() argument
526 if (Phi->getParent() != TheLoop->getHeader() || in isFirstOrderRecurrence()
532 auto *Preheader = TheLoop->getLoopPreheader(); in isFirstOrderRecurrence()
533 auto *Latch = TheLoop->getLoopLatch(); in isFirstOrderRecurrence()
545 if (!Previous || !TheLoop->contains(Previous) || isa<PHINode>(Previous)) in isFirstOrderRecurrence()
896 Optional<const MDOperand *> llvm::findStringMetadataForLoop(Loop *TheLoop, in findStringMetadataForLoop() argument
898 MDNode *LoopID = TheLoop->getLoopID(); in findStringMetadataForLoop()