reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1100     BlockNode Header = getNode(Loop->getHeader());
 1127     BlockNode Header = getNode(Loop->getHeader());
include/llvm/Analysis/CFG.h
  151       if (Lp->getHeader() == Dst)
include/llvm/Analysis/LoopInfo.h
  226     BlockT *Header = getHeader();
  236     BlockT *H = getHeader();
  316     BlockT *H = getHeader();
  828     if (BasicBlock *Header = getHeader())
  943     return L && L->getHeader() == BB;
include/llvm/Analysis/LoopInfoImpl.h
  194   BlockT *Header = getHeader();
  211   BlockT *Header = getHeader();
  240     auto SameHeader = LIB[getHeader()];
  241     assert(contains(SameHeader) && getHeader() == SameHeader->getHeader() &&
  241     assert(contains(SameHeader) && getHeader() == SameHeader->getHeader() &&
  290       BI = df_ext_begin(getHeader(), VisitSet),
  291       BE = df_ext_end(getHeader(), VisitSet);
  318     if (BB == getHeader()) {
  330     assert(BB != &getHeader()->getParent()->front() &&
  384   BlockT *H = getHeader();
  440       if (PredBB == L->getHeader())
  459       PredBB = Subloop->getHeader();
  503   if (Subloop && Block == Subloop->getHeader()) {
  632   LoopHeaders[L.getHeader()] = &L;
  641   BlockT *H = L->getHeader();
  642   BlockT *OtherH = OtherL->getHeader();
  650     assert(ParentL->getHeader() == OtherParentL->getHeader() &&
  650     assert(ParentL->getHeader() == OtherParentL->getHeader() &&
  657     BlockT *SubH = SubL->getHeader();
  716     BlockT *Header = L->getHeader();
include/llvm/Analysis/LoopIterator.h
   67       return N.second != L->getHeader() && L->contains(N.second);
   74   static NodeRef getEntryNode(const Loop &G) { return {&G, G.getHeader()}; }
  219     return po_ext_begin(DFS.L->getHeader(), *this);
  223     return po_ext_end(DFS.L->getHeader(), *this);
include/llvm/Analysis/RegionInfoImpl.h
  128   if (!contains(L->getHeader()))
lib/Analysis/BranchProbabilityInfo.cpp
  602       else if (L->getHeader() == *I)
lib/Analysis/DDG.cpp
  144     : DependenceGraphInfo(Twine(L.getHeader()->getParent()->getName() + "." +
  145                                 L.getHeader()->getName())
  191   Function *F = L.getHeader()->getParent();
  200   OS << "'DDG' for loop '" << L.getHeader()->getName() << "':\n";
lib/Analysis/Delinearization.cpp
   96       O << "In Loop with Header: " << L->getHeader()->getName() << "\n";
lib/Analysis/DivergenceAnalysis.cpp
  329   if (!inRegion(*ExitingLoop.getHeader()))
  341     taintLoopLiveOuts(*ExitingLoop.getHeader());
lib/Analysis/IVDescriptors.cpp
  200   if (Phi->getParent() != TheLoop->getHeader())
  616   BasicBlock *Header = TheLoop->getHeader();
  676   if (Phi->getParent() != TheLoop->getHeader() ||
  834   if (TheLoop->getHeader() != Phi->getParent())
lib/Analysis/IVUsers.cpp
  102     if (DomLoop && DomLoop->getHeader() == DomBB) {
  314   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I)
  320   L->getHeader()->printAsOperand(OS, false);
  332       PostIncLoop->getHeader()->printAsOperand(OS, false);
  367       *L->getHeader()->getParent());
lib/Analysis/InlineCost.cpp
 1922       if (DeadBlocks.count(L->getHeader()))
lib/Analysis/Loads.cpp
  208   Instruction *HeaderFirstNonPHI = L->getHeader()->getFirstNonPHI();
lib/Analysis/LoopAccessAnalysis.cpp
  917                     TheLoop->getHeader()->getParent(),
 1035       NullPointerIsDefined(Lp->getHeader()->getParent(),
 1063   auto &DL = Lp->getHeader()->getModule()->getDataLayout();
 1083       (IsInBoundsGEP || !NullPointerIsDefined(Lp->getHeader()->getParent(),
 1494   auto &DL = InnermostLoop->getHeader()->getModule()->getDataLayout();
 1738                     << TheLoop->getHeader()->getParent()->getName() << ": "
 1739                     << TheLoop->getHeader()->getName() << '\n');
 1914   AccessAnalysis Accesses(TheLoop->getHeader()->getModule()->getDataLayout(),
 2091   Value *CodeRegion = TheLoop->getHeader();
 2207   const DataLayout &DL = TheLoop->getHeader()->getModule()->getDataLayout();
 2317   const DataLayout &DL = TheLoop->getHeader()->getModule()->getDataLayout();
 2414       OS.indent(2) << L->getHeader()->getName() << ":\n";
lib/Analysis/LoopCacheAnalysis.cpp
  618   Function *F = L.getHeader()->getParent();
lib/Analysis/LoopInfo.cpp
  122   BasicBlock *H = getHeader();
  147   BasicBlock *H = getHeader();
  241   ICmpInst::Predicate Pred = (BI->getSuccessor(0) == L.getHeader())
  294   BasicBlock *Header = getHeader();
  339   BasicBlock *Header = getHeader();
  526   LLVMContext &Context = getHeader()->getContext();
  640   if (BasicBlock *HeadBB = getHeader())
  941     L.getHeader()->printAsOperand(OS, false);
  945     OS << *L.getHeader()->getModule();
lib/Analysis/LoopPass.cpp
  216                    CurrentLoop->getHeader()->getName());
  223         PassManagerPrettyStackEntry X(P, *CurrentLoop->getHeader());
  282                                           : CurrentLoop->getHeader()->getName(),
  394   const Function *F = L->getHeader()->getParent();
lib/Analysis/LoopUnrollAnalyzer.cpp
  213   return PN.getParent() == L->getHeader();
lib/Analysis/MustExecute.cpp
   51   BasicBlock *Header = CurLoop->getHeader();
  104   Function *Fn = CurLoop->getHeader()->getParent();
  137   if (!LHS || LHS->getParent() != CurLoop->getHeader())
  162   if (BB == CurLoop->getHeader())
  173     if (Pred == CurLoop->getHeader())
  193   if (BB == CurLoop->getHeader())
  252   if (Inst.getParent() == CurLoop->getHeader())
  277   if (BB == CurLoop->getHeader())
  429       OS << L->getHeader()->getName();
lib/Analysis/ScalarEvolution.cpp
  277     AR->getLoop()->getHeader()->printAsOperand(OS, /*PrintType=*/false);
  704       const BasicBlock *LHead = LLoop->getHeader(), *RHead = RLoop->getHeader();
  704       const BasicBlock *LHead = LLoop->getHeader(), *RHead = RLoop->getHeader();
 2402   return isLoopInvariant(S, L) && properlyDominates(S, L->getHeader());
 2745            cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()->getHeader(),
 2746            AddRec->getLoop()->getHeader()) &&
 3442                DT.dominates(L->getHeader(), NestedLoop->getHeader()))) {
 3442                DT.dominates(L->getHeader(), NestedLoop->getHeader()))) {
 4334         IsPosBECond = BI->getSuccessor(0) == L->getHeader();
 4625   if (!L || L->getHeader() != PN->getParent())
 4963   assert(L && L->getHeader() == PN->getParent());
 5005   if (!L || L->getHeader() != PN->getParent())
 5990       InnermostContainingLoop->getHeader() != I->getParent())
 6638   BasicBlock *Header = L->getHeader();
 6691            isa<PHINode>(L->getHeader()->begin())) {
 7632     if (!PNOut || PNOut->getParent() != L->getHeader())
 7732     return L->getHeader() == I->getParent();
 7888   BasicBlock *Header = L->getHeader();
 7968   BasicBlock *Header = L->getHeader();
 8156             PN->getParent() == LI->getHeader()) {
 8861     return {L->getLoopPredecessor(), L->getHeader()};
 8931     if (isLoopInvariant(LHS, L) && properlyDominates(LHS, L->getHeader())) {
 9137       assert((DT.dominates(L1->getHeader(), L2->getHeader()) ||
 9137       assert((DT.dominates(L1->getHeader(), L2->getHeader()) ||
 9138               DT.dominates(L2->getHeader(), L1->getHeader())) &&
 9138               DT.dominates(L2->getHeader(), L1->getHeader())) &&
 9145          return DT.properlyDominates(L1->getHeader(), L2->getHeader());
 9145          return DT.properlyDominates(L1->getHeader(), L2->getHeader());
 9460     assert(!verifyFunction(*L->getHeader()->getParent(), &dbgs()) &&
 9476                     LoopContinuePredicate->getSuccessor(0) != L->getHeader()))
 9517   if (!DT.isReachableFromEntry(L->getHeader()))
 9523   for (DomTreeNode *DTN = DT[Latch], *HeaderDTN = DT[L->getHeader()];
 9570     assert(!verifyFunction(*L->getHeader()->getParent(), &dbgs()) &&
 9639          Pair(L->getLoopPredecessor(), L->getHeader());
 9662     if (!DT.dominates(CI, L->getHeader()))
10078   } else if (RAR && RAR->getLoop()->getHeader() == LBB) {
11488   L->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11508   L->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11521   L->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11537     L->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11612           Iter->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11626           InnerL->getHeader()->printAsOperand(OS, /*PrintType=*/false);
11683     if (DT.dominates(L->getHeader(), AR->getLoop()->getHeader()))
11683     if (DT.dominates(L->getHeader(), AR->getLoop()->getHeader()))
11784     if (!DT.dominates(AR->getLoop()->getHeader(), BB))
lib/Analysis/ScalarEvolutionExpander.cpp
  611   if (DT.dominates(A->getHeader(), B->getHeader())) return B;
  611   if (DT.dominates(A->getHeader(), B->getHeader())) return B;
  612   if (DT.dominates(B->getHeader(), A->getHeader())) return A;
  612   if (DT.dominates(B->getHeader(), A->getHeader())) return A;
 1179         SE.DT.properlyDominates(LatchBlock, IVIncInsertLoop->getHeader());
 1181     for (PHINode &PN : L->getHeader()->phis()) {
 1272                                  L->getHeader()));
 1284   Value *StepV = expandCodeFor(Step, IntTy, &L->getHeader()->front());
 1293   BasicBlock *Header = L->getHeader();
 1354   if (!SE.properlyDominates(Start, L->getHeader())) {
 1366   if (!SE.dominates(Step, L->getHeader())) {
 1430         StepV = expandCodeFor(Step, IntTy, &L->getHeader()->front());
 1563     BasicBlock *Header = L->getHeader();
 1846           InsertPt = &*L->getHeader()->getFirstInsertionPt();
 1852           InsertPt = &*L->getHeader()->getFirstInsertionPt();
 1937       cast<PHINode>(expandCodeFor(H, nullptr, &L->getHeader()->front()));
 1954   for (PHINode &PN : L->getHeader()->phis())
 2074       IRBuilder<> Builder(&*L->getHeader()->getFirstInsertionPt());
 2169             L->getHeader()->getParent()->getParent()->getDataLayout();
 2412       if (!AR->isAffine() && !SE.dominates(Step, AR->getLoop()->getHeader())) {
lib/Analysis/SyncDependenceAnalysis.cpp
  310           ParentLoop ? ParentLoop->getHeader() : nullptr;
  350       *Loop.getHeader(), LoopExits, Loop.getParentLoop());
lib/Analysis/TargetTransformInfo.cpp
   97     for (BasicBlock *Pred : predecessors(L->getHeader())) {
lib/Analysis/ValueTracking.cpp
 4310   if (I->getParent() != L->getHeader()) return false;
 4312   for (const Instruction &LI : *L->getHeader()) {
lib/Analysis/VectorUtils.cpp
  806   auto &DL = TheLoop->getHeader()->getModule()->getDataLayout();
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2848     << Loop->getHeader()->getNumber()
 2860       << CL->getHeader()->getNumber() << " Depth " << CL->getLoopDepth()
 2874   MachineBasicBlock *Header = Loop->getHeader();
 2882                                Twine(Loop->getHeader()->getNumber())+
lib/CodeGen/BranchFolding.cpp
 1142       if (ML && IBB == ML->getHeader())
lib/CodeGen/HardwareLoops.cpp
  147       SE(SE), DL(DL), L(Info.L), M(L->getHeader()->getModule()),
  431   BasicBlock *Header = L->getHeader();
lib/CodeGen/MachineBasicBlock.cpp
 1094           assert(DestLoop->getHeader() == Succ &&
lib/CodeGen/MachineBlockPlacement.cpp
 1971     if (Pred == L.getHeader())
 2007          *BestPred->pred_begin() != L.getHeader())
 2029     return L.getHeader();
 2032   MachineBasicBlock *NewTop = L.getHeader();
 2059   BlockChain &HeaderChain = *BlockToChain[L.getHeader()];
 2072                     << getBlockName(L.getHeader()) << "\n");
 2441     for (auto LoopPred : L.getHeader()->predecessors())
 2444                     MBPI->getEdgeProbability(LoopPred, L.getHeader());
 2497   if (!RotateLoopWithProfile && LoopTop == L.getHeader())
 2779     MachineBasicBlock *LoopHeader = L->getHeader();
lib/CodeGen/MachineLICM.cpp
  360       MachineDomTreeNode *N = DT->getNode(CurLoop->getHeader());
  506     if (ML && ML->getHeader()->isEHPad()) continue;
  617   if (BB != CurLoop->getHeader()) {
  690     if (ML && ML->getHeader()->isEHPad())
 1031       } else if (CurLoop->getHeader()->isLiveIn(Reg)) {
 1520       CurPreheader = Pred->SplitCriticalEdge(CurLoop->getHeader(), *this);
lib/CodeGen/MachineLoopInfo.cpp
   55   MachineBasicBlock *TopMBB = getHeader();
   70   MachineBasicBlock *BotMBB = getHeader();
  103   if (MachineBasicBlock *HeadMBB = getHeader())
  119   MachineBasicBlock *HB = L->getHeader(), *LB = L->getLoopLatch();
  139     if (T && T->getHeader() == S)
lib/CodeGen/MachinePipeliner.cpp
  320   if (TII->analyzeBranch(*L.getHeader(), LI.TBB, LI.FBB, LI.BrCond)) {
  344   preprocessPhiNodes(*L.getHeader());
  388   MachineBasicBlock *MBB = L.getHeader();
 1018   MachineBasicBlock *MBB = Loop.getHeader();
lib/CodeGen/MachineTraceMetrics.cpp
  330   if (CurLoop && MBB == CurLoop->getHeader())
  361     if (CurLoop && Succ == CurLoop->getHeader())
  461         if ((LB.Downward ? To : *From) == FromLoop->getHeader())
  597       assert(!(Loop && MBB == Loop->getHeader()) && "Trace contains backedge");
  606       assert(!(Loop && Loop == SuccLoop && TBI.Succ == Loop->getHeader()) &&
 1070         if (MBB->isSuccessor(Loop->getHeader()))
 1071           Succ = Loop->getHeader();
lib/CodeGen/PHIElimination.cpp
  569   bool IsLoopHeader = CurLoop && &MBB == CurLoop->getHeader();
lib/CodeGen/RegAllocGreedy.cpp
 3195                                         L->getStartLoc(), L->getHeader());
lib/CodeGen/SplitKit.cpp
  937     MachineDomTreeNode *IDom = MDT[Loop->getHeader()]->getIDom();
lib/Passes/StandardInstrumentations.cpp
   60     const Function *F = L->getHeader()->getParent();
   66     L->getHeader()->printAsOperand(ss, false);
   98   const Function *F = L->getHeader()->getParent();
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  102     Start = L->getHeader();
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
  363   MachineBasicBlock *LoopHeader = LoopRep->getHeader();
  376   while (LoopRep && LoopRep->getHeader() == MBB) {
 1039   MachineBasicBlock *LoopHeader = LoopRep->getHeader();
 1577   MachineBasicBlock *LoopHeader = LoopRep->getHeader();
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  237       Insert = L->getHeader()->getFirstNonPHIOrDbgOrLifetime();
  247       Term : L->getHeader()->getTerminator();
  296   if (L && L->getHeader() == BB) {
lib/Target/AMDGPU/SIISelLowering.cpp
10762   const MachineBasicBlock *Header = ML->getHeader();
lib/Target/ARM/ARMLowOverheadLoops.cpp
  251     for (auto *MBB : ML->getHeader()->predecessors()) {
  324   if (End->getOperand(1).getMBB() != ML->getHeader()) {
  331   if (BBUtils->getOffsetOf(End) < BBUtils->getOffsetOf(ML->getHeader()) ||
  332       !BBUtils->isBBInRange(End, ML->getHeader(), 4094)) {
lib/Target/ARM/ARMTargetTransformInfo.cpp
  994   LLVMContext &C = L->getHeader()->getContext();
 1012   if (L->getHeader()->getParent()->hasOptSize())
lib/Target/ARM/ARMTargetTransformInfo.h
   97     if (L->getHeader()->getParent()->hasOptSize())
lib/Target/ARM/MVETailPredication.cpp
  115   Function &F = *L->getHeader()->getParent();
  388   auto DL = L->getHeader()->getModule()->getDataLayout();
  450   Module *M = L->getHeader()->getModule();
  476     IRBuilder<> Builder(L->getHeader()->getFirstNonPHI());
lib/Target/Hexagon/HexagonCommonGEP.cpp
  843   BasicBlock *HdrB = L->getHeader(), *DefB = In->getParent();
  855   BasicBlock *HB = L->getHeader();
  870   DomTreeNode *DN = DT->getNode(L->getHeader());
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  235   return L && SB == L->getHeader() && MDT->dominates(B, SB);
  644   MachineBasicBlock *HB = L ? L->getHeader() : nullptr;
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  406   MachineBasicBlock *Header = L->getHeader();
  622   MachineBasicBlock *Header = L->getHeader();
 1127   assert(L->getHeader() && "Loop without a header?");
 1607   MachineBasicBlock *Header = L->getHeader();
 1855   MachineBasicBlock *Header = L->getHeader();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  569       LLVMContext &Ctx = CurLoop->getHeader()->getParent()->getContext();
 1769   BasicBlock *LoopB = CurLoop->getHeader();
 2090     Function *Func = CurLoop->getHeader()->getParent();
 2169     BasicBlock *Header = CurLoop->getHeader();
 2408   const Module &M = *L->getHeader()->getParent()->getParent();
 2421   StringRef Name = L->getHeader()->getParent()->getName();
 2426   DL = &L->getHeader()->getModule()->getDataLayout();
 2430       *L->getHeader()->getParent());
lib/Target/Hexagon/HexagonSplitDouble.cpp
  456         if (L && L->getHeader() == PB)
  478   const MachineBasicBlock *HB = L->getHeader();
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  663   LLVM_DEBUG(dbgs() << "Working on Loop: " << *CurLoop->getHeader() << "\n");
  695     if (BB != CurLoop->getHeader()) {
  728   BasicBlock *BB = CurLoop->getHeader();
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  365   BasicBlock *Header = L->getHeader();
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  548   LLVMContext &C = L->getHeader()->getContext();
lib/Target/SystemZ/SystemZMachineScheduler.cpp
   48   if (MBB->pred_size() == 2 && Loop != nullptr && Loop->getHeader() == MBB) {
   89              if (Loop && Loop->getHeader() == MBB) dbgs() << " (Loop header)";
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
   64   MachineBasicBlock *getHeader() const override { return Region->getHeader(); }
  251       if (L->getHeader() == &MBB)
  297         if (SuccL->getHeader() == Succ && SuccL->contains(MBB))
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
  379   if (!Loop || Loop->getHeader() != &MBB)
lib/Target/WebAssembly/WebAssemblyUtilities.h
   40   MachineBasicBlock *Bottom = Unit->getHeader();
lib/Transforms/IPO/LoopExtractor.cpp
  109       L->getHeader()->getParent()->getEntryBlock().getTerminator();
  112       EntryTI->getSuccessor(0) != L->getHeader()) {
  144     Function &Func = *L->getHeader()->getParent();
lib/Transforms/IPO/SampleProfile.cpp
 1381     BasicBlock *Header = L->getHeader();
lib/Transforms/Scalar/GuardWidening.cpp
  826   Function &F = *L.getHeader()->getParent();
  833     RootBB = L.getHeader();
  894       RootBB = L->getHeader();
lib/Transforms/Scalar/IndVarSimplify.cpp
  505   BasicBlock *Header = L->getHeader();
  793         if (!ExitVal || ExitVal->getParent() != L->getHeader())
  803           assert(ExitVal->getParent() == L->getHeader() &&
 1033     assert(L->getHeader() == OrigPhi->getParent() && "Phi must be an IV");
 1748       SE->properlyDominates(AddRec->getStart(), L->getHeader()) &&
 1749       SE->properlyDominates(AddRec->getStepRecurrence(*SE), L->getHeader()) &&
 1769   Instruction *InsertPt = &L->getHeader()->front();
 1973   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 2039   if (Phi && Phi->getParent() == L->getHeader()) {
 2049   if (Phi && Phi->getParent() == L->getHeader()) {
 2221   assert(Phi->getParent() == L->getHeader());
 2259   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
 2261   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
 3113   Changed |= DeleteDeadPHIs(L->getHeader(), TLI);
 3142   Function *F = L.getHeader()->getParent();
 3171     auto *TLI = TLIP ? &TLIP->getTLI(*L->getHeader()->getParent()) : nullptr;
 3173     auto *TTI = TTIP ? &TTIP->getTTI(*L->getHeader()->getParent()) : nullptr;
 3174     const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  413   LLVMContext &Context = L.getHeader()->getContext();
  630       : F(*L.getHeader()->getParent()), Ctx(L.getHeader()->getContext()),
  630       : F(*L.getHeader()->getParent()), Ctx(L.getHeader()->getContext()),
  757   BasicBlock *Header = L.getHeader();
 1752   Function *F = L.getHeader()->getParent();
 1871       dbgs() << L->getHeader()->getParent()->getName() << ": ";
lib/Transforms/Scalar/LICM.cpp
  218     OptimizationRemarkEmitter ORE(L->getHeader()->getParent());
  224                               *L->getHeader()->getParent()),
  226                               *L->getHeader()->getParent()),
  281   Function *F = L.getHeader()->getParent();
  389     Changed |= sinkRegion(DT->getNode(L->getHeader()), AA, LI, DT, TLI, TTI, L,
  393     Changed |= hoistRegion(DT->getNode(L->getHeader()), AA, LI, DT, TLI, L,
  768       DomTreeNode *HeaderNode = DT->getNode(CurLoop->getHeader());
 1022         DT->properlyDominates(II->getParent(), CurLoop->getHeader()))
lib/Transforms/Scalar/LoopAccessAnalysisPrinter.cpp
   18   Function &F = *L.getHeader()->getParent();
   21   OS.indent(2) << L.getHeader()->getName() << ":\n";
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  248                     << L->getHeader()->getParent()->getName() << ": " << *L);
lib/Transforms/Scalar/LoopDistribute.cpp
  669                       << L->getHeader()->getParent()->getName()
  853                                 L->getHeader())
  869                                       L->getStartLoc(), L->getHeader())
  879                   RemarkName, L->getStartLoc(), L->getHeader())
lib/Transforms/Scalar/LoopFuse.cpp
  164       : Preheader(L->getLoopPreheader()), Header(L->getHeader()),
  225     assert(Header == L->getHeader() && "Header is out of sync");
  905     BasicBlock *L0Header = L0.getHeader();
  910       return !DT.dominates(L0Header, AddRec->getLoop()->getHeader()) &&
  911              !DT.dominates(AddRec->getLoop()->getHeader(), L0Header);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  277             *L->getHeader()->getParent());
  280             *L->getHeader()->getParent());
  281     const DataLayout *DL = &L->getHeader()->getModule()->getDataLayout();
  287     OptimizationRemarkEmitter ORE(L->getHeader()->getParent());
  309   const auto *DL = &L.getHeader()->getModule()->getDataLayout();
  313   Function *F = L.getHeader()->getParent();
  360   StringRef Name = L->getHeader()->getParent()->getName();
  367       L->getHeader()->getParent()->hasOptSize() && UseLIRCodeSizeHeurs;
  398                     << CurLoop->getHeader()->getParent()->getName()
  399                     << "] Countable Loop %" << CurLoop->getHeader()->getName()
 1198       LLVM_DEBUG(dbgs() << "  " << CurLoop->getHeader()->getParent()->getName()
 1210                     << CurLoop->getHeader()->getParent()->getName()
 1212                     << CurLoop->getHeader()->getName() << "\n");
 1569   auto InstWithoutDebugIt = CurLoop->getHeader()->instructionsWithoutDebug();
 1914   if (!match(CurLoop->getHeader()->getTerminator(),
 1960   BasicBlock *LoopHeaderBB = CurLoop->getHeader();
 2209                                       CurLoop->getHeader())
 2219                                       CurLoop->getHeader())
 2232   BasicBlock *HeaderBB = CurLoop->getHeader();
 2332     if (OldBB == CurLoop->getHeader()) // "element compared unequal".
lib/Transforms/Scalar/LoopInstSimplify.cpp
   53   const DataLayout &DL = L.getHeader()->getModule()->getDataLayout();
  193             *L->getHeader()->getParent());
  196             *L->getHeader()->getParent());
lib/Transforms/Scalar/LoopInterchange.cpp
  275                     << L.getHeader()->getParent()->getName() << " Loop: %"
  276                     << L.getHeader()->getName() << '\n');
  301   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
  573                                 InnerLoop->getHeader())
  595   BasicBlock *OuterLoopHeader = OuterLoop->getHeader();
  610     if (Succ != InnerLoopPreHeader && Succ != InnerLoop->getHeader() &&
  682   for (PHINode &PHI : L->getHeader()->phis()) {
  753                                       OuterLoop->getHeader())
  769                                       OuterLoop->getHeader())
  783                                       OuterLoop->getHeader())
  798                                       InnerLoop->getHeader())
  813                                       InnerLoop->getHeader())
  827                                       InnerLoop->getHeader())
  841                                       InnerLoop->getHeader())
  873                                       InnerLoop->getHeader())
  898                    InnerLoop->getStartLoc(), InnerLoop->getHeader())
  915                                       InnerLoop->getHeader())
  970                                       InnerLoop->getHeader())
 1008                                       InnerLoop->getHeader())
 1020                                       OuterLoop->getHeader())
 1122                                     InnerLoop->getHeader())
 1198   BasicBlock *OuterHeader = NewOuter->getHeader();
 1294     BasicBlock *InnerLoopHeader = InnerLoop->getHeader();
 1433   assert(OuterLoopPreHeader != OuterLoop->getHeader() &&
 1434          InnerLoopPreHeader != InnerLoop->getHeader() && OuterLoopPreHeader &&
 1444   if (InnerLoopPreHeader == OuterLoop->getHeader())
 1449   BasicBlock *InnerLoopHeader = InnerLoop->getHeader();
 1450   BasicBlock *OuterLoopHeader = OuterLoop->getHeader();
 1568   BasicBlock *OuterLoopHeader = OuterLoop->getHeader();
lib/Transforms/Scalar/LoopLoadElimination.cpp
  157   return Load->getParent() != L->getHeader();
  442                                    &L->getHeader()->front());
  452     LLVM_DEBUG(dbgs() << "\nIn \"" << L->getHeader()->getParent()->getName()
  544       auto *HeaderBB = L->getHeader();
  571     SCEVExpander SEE(*PSE.getSE(), L->getHeader()->getModule()->getDataLayout(),
lib/Transforms/Scalar/LoopPredication.cpp
  353   Function *F = L.getHeader()->getParent();
  850       (TrueDest == L->getHeader() || BI->getSuccessor(1) == L->getHeader()) &&
  850       (TrueDest == L->getHeader() || BI->getSuccessor(1) == L->getHeader()) &&
  864   if (TrueDest != L->getHeader())
  924       LatchTerm->getSuccessor(0) == L->getHeader() ? 1 : 0;
  962   Module *M = L->getHeader()->getModule();
lib/Transforms/Scalar/LoopRerollPass.cpp
  574   BasicBlock *Header = L->getHeader();
  653   BasicBlock *Header = L->getHeader();
  698           if (PN->getIncomingBlock(U) == L->getHeader())
 1013   for (auto &I : *L->getHeader()) {
 1167   BasicBlock *Header = L->getHeader();
 1421   BasicBlock *Header = L->getHeader();
 1485   BasicBlock *Header = L->getHeader();
 1648       *L->getHeader()->getParent());
 1652   BasicBlock *Header = L->getHeader();
 1665   LLVM_DEBUG(dbgs() << "\n Before Reroll:\n" << *(L->getHeader()) << "\n");
 1692   LLVM_DEBUG(dbgs() << "\n After Reroll:\n" << *(L->getHeader()) << "\n");
lib/Transforms/Scalar/LoopRotation.cpp
   41   const DataLayout &DL = L.getHeader()->getModule()->getDataLayout();
   92     Function &F = *L->getHeader()->getParent();
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
   85   assert((!LastLoop || LastLoop->contains(FirstLoop->getHeader())) &&
  100     while (BBL && !BBL->contains(L.getHeader()))
  226     LiveLoopBlocks.insert(L.getHeader());
  280     DeleteCurrentLoop = !IsEdgeLive(L.getLoopLatch(), L.getHeader());
  306     assert(BlocksInLoopAfterFolding.count(L.getHeader()) &&
  457       assert(BB != L.getHeader() &&
  535     BasicBlock *Header = L.getHeader();
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  394   if (SE.properlyDominates(S, L->getHeader())) {
  884   for (PHINode &PN : AR->getLoop()->getHeader()->phis()) {
 1500     PIL->getHeader()->printAsOperand(OS, /*PrintType=*/false);
 2482         Cond->setName(L->getHeader()->getName() + ".termcond");
 3042   BasicBlock *LoopHeader = L->getHeader();
 3080   for (PHINode &PN : L->getHeader()->phis()) {
 3219     for (PHINode &Phi : L->getHeader()->phis()) {
 3422         if (UserInst->getParent()->getParent() != L->getHeader()->getParent())
 3429         if (!DT.dominates(L->getHeader(), UseBB))
 3694     if (SE.properlyDominates(BaseReg, L->getHeader()) &&
 5323         if (!PNLoop || Parent != PNLoop->getHeader()) {
 5462   SCEVExpander Rewriter(SE, L->getHeader()->getModule()->getDataLayout(),
 5543     if (DomLoop && DomLoop->getHeader() == BB) {
 5550              L->getHeader()->printAsOperand(dbgs(), /*PrintType=*/false);
 5718   Changed |= DeleteDeadPHIs(L->getHeader());
 5721     const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
 5730       DeleteDeadPHIs(L->getHeader());
 5745       *L->getHeader()->getParent());
 5747       *L->getHeader()->getParent());
 5749       *L->getHeader()->getParent());
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  308                     << L->getHeader()->getParent()->getName() << "] Loop %"
  309                     << L->getHeader()->getName() << "\n");
  444     Function &F = *L->getHeader()->getParent();
  499   Function *F = L.getHeader()->getParent();
lib/Transforms/Scalar/LoopUnrollPass.cpp
  214   bool OptForSize = L->getHeader()->getParent()->hasOptSize() ||
  215                     llvm::shouldOptimizeForSize(L->getHeader(), PSI, BFI);
  411           if (PhiI->getParent() == L->getHeader()) {
  478     for (Instruction &I : *L->getHeader()) {
  506     BBWorklist.insert(L->getHeader());
  886                                             L->getStartLoc(), L->getHeader())
  903                                         L->getStartLoc(), L->getHeader())
  918                  L->getStartLoc(), L->getHeader())
  938   if (L->getHeader()->getParent()->hasProfileData()) {
  986                                         L->getStartLoc(), L->getHeader())
 1023                     << L->getHeader()->getParent()->getName() << "] Loop %"
 1024                     << L->getHeader()->getName() << "\n");
 1039   bool OptForSize = L->getHeader()->getParent()->hasOptSize();
 1223     Function &F = *L->getHeader()->getParent();
 1299   Function *F = L.getHeader()->getParent();
lib/Transforms/Scalar/LoopUnswitch.cpp
  236       loopHeader = currentLoop->getHeader();
  308       LLVM_DEBUG(dbgs() << "NOT unswitching loop %" << L->getHeader()->getName()
  523       *L->getHeader()->getParent());
  533   Function *F = currentLoop->getHeader()->getParent();
  651                            *currentLoop->getHeader()->getParent()),
  870   Visited.insert(L->getHeader());  // Branches to header make infinite loops.
  885                       << currentLoop->getHeader()->getName()
  894                       << currentLoop->getHeader()->getName()
 1005                     << L->getHeader()->getParent()->getName()
 1058   BasicBlock *CurrentBB = currentLoop->getHeader();
 1582   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  418                                       CurLoop->getHeader())
  450                                       CurLoop->getHeader())
  493                                       CurLoop->getHeader())
  513                                       CurLoop->getHeader())
  522                               CurLoop->getStartLoc(), CurLoop->getHeader())
lib/Transforms/Scalar/PlaceSafepoints.cpp
  312   BasicBlock *Header = L->getHeader();
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  432   BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU);
  672   BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU);
  867   BasicBlock *CurrentBB = L.getHeader();
 1206   auto *OrigHeader = OrigL.getHeader();
 1327           cast_or_null<BasicBlock>(VMap.lookup(ChildL->getHeader()));
 1434         cast_or_null<BasicBlock>(VMap.lookup(ChildL->getHeader()));
 1523     if (!DeadBlockSet.count(ChildL->getHeader()))
 1568   auto *Header = L.getHeader();
 1838                   return LoopBlockSet.count(SubL->getHeader());
 2018   BasicBlock *LoopPH = SplitEdge(SplitBB, L.getHeader(), &DT, &LI, MSSAU);
 2536     auto *GuardDecl = L.getHeader()->getParent()->getParent()->getFunction(
 2846   Function &F = *L.getHeader()->getParent();
 2926   Function &F = *L->getHeader()->getParent();
lib/Transforms/Scalar/WarnMissedTransforms.cpp
   30                                           L->getStartLoc(), L->getHeader())
   41                                           L->getStartLoc(), L->getHeader())
   58                                             L->getStartLoc(), L->getHeader())
   66                                             L->getStartLoc(), L->getHeader())
   77                                           L->getStartLoc(), L->getHeader())
lib/Transforms/Utils/BreakCriticalEdges.cpp
  265           assert(DestLoop->getHeader() == DestBB &&
lib/Transforms/Utils/CloneFunction.cpp
  757   Function *F = OrigLoop->getHeader()->getParent();
  807     if (BB == CurLoop->getHeader())
  828                                 NewLoop->getHeader()->getIterator(), F->end());
lib/Transforms/Utils/LCSSA.cpp
  289     if (L.getHeader() == BB)
lib/Transforms/Utils/LoopRotationUtils.cpp
  177   BasicBlock *Header = L->getHeader();
  209   BasicBlock *OrigHeader = L->getHeader();
  418   assert(L->getHeader() == NewHeader && "Latch block is our new header");
lib/Transforms/Utils/LoopSimplify.cpp
  125   BasicBlock *Header = L->getHeader();
  184   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
  185   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ) {
  233   BasicBlock *Header = L->getHeader();
  300     if (BlocksInL.count(SubLoops[I]->getHeader()))
  354   BasicBlock *Header = L->getHeader();
  487     if (*BB == L->getHeader()) continue;
  587   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
  593   for (BasicBlock::iterator I = L->getHeader()->begin();
lib/Transforms/Utils/LoopUnroll.cpp
  141     assert(OriginalBB == OldLoop->getHeader() &&
  187   BasicBlock *Header = L->getHeader();
  218   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
  304   BasicBlock *Header = L->getHeader();
  467                                   L->getHeader())
  477                                   L->getHeader())
  484                               L->getHeader());
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  179   BasicBlock *Header = L->getHeader();
  222                                  L->getHeader())
  228                               L->getHeader());
  277   SubLoopBlocksFirst.push_back(SubLoop->getHeader());
  732   BasicBlock *Header = L->getHeader();
  735   BasicBlock *SubLoopHeader = SubLoop->getHeader();
lib/Transforms/Utils/LoopUnrollPeel.cpp
  128   assert(Phi->getParent() == L->getHeader() &&
  147     if (IncPhi->getParent() != L->getHeader())
  311     for (auto BI = L->getHeader()->begin(); isa<PHINode>(&*BI); ++BI) {
  354   if (L->getHeader()->getParent()->hasProfileData()) {
  474   BasicBlock *Header = L->getHeader();
  587   BasicBlock *Header = L->getHeader();
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  306   BasicBlock *Header = L->getHeader();
  565   BasicBlock *Header = L->getHeader();
lib/Transforms/Utils/LoopUtils.cpp
  201   LLVMContext &Context = TheLoop->getHeader()->getContext();
  239   LLVMContext &Context = TheLoop->getHeader()->getContext();
  558   Builder.CreateCondBr(Builder.getFalse(), L->getHeader(), ExitBlock);
  596                       {DominatorTree::Delete, Preheader, L->getHeader()}});
  691   assert((LatchBR->getSuccessor(0) == L->getHeader() ||
  692           LatchBR->getSuccessor(1) == L->getHeader()) &&
  714   if (LatchBR->getSuccessor(0) == L->getHeader())
lib/Transforms/Utils/LoopVersioning.cpp
   89   RuntimeCheckBB->setName(VersionedLoop->getHeader()->getName() +
   96                  nullptr, VersionedLoop->getHeader()->getName() + ".ph");
  176   LLVMContext &Context = VersionedLoop->getHeader()->getContext();
  227   LLVMContext &Context = VersionedLoop->getHeader()->getContext();
lib/Transforms/Utils/SimplifyIndVar.cpp
  951   for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
   94   LLVMContext &Context = TheLoop->getHeader()->getContext();
  134                                         L->getHeader())
  152                                       TheLoop->getHeader())
  156                                  TheLoop->getStartLoc(), TheLoop->getHeader());
  264                                                 L->getHeader())
  412   bool CanAddPredicate = !TheLoop->getHeader()->getParent()->hasOptSize();
  544   BasicBlock *Header = TheLoop->getHeader();
  570   BasicBlock *Header = TheLoop->getHeader();
  964   BasicBlock *Header = TheLoop->getHeader();
 1107   LLVM_DEBUG(dbgs() << "LV: Found a loop: " << TheLoop->getHeader()->getName()
lib/Transforms/Vectorize/LoopVectorize.cpp
  854   Value *CodeRegion = TheLoop->getHeader();
  893       OS << L->getHeader()->getParent()->getParent()->getModuleIdentifier();
 1536   Function *Fn = OuterLp->getHeader()->getParent();
 1824   auto &DL = OrigLoop->getHeader()->getModule()->getDataLayout();
 2525   BasicBlock *Header = L->getHeader();
 2583   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
 2766                                         L->getStartLoc(), L->getHeader())
 2916   BasicBlock *OldBasicBlock = OrigLoop->getHeader();
 3021       const DataLayout &DL = OrigLoop->getHeader()->getModule()->getDataLayout();
 3136           OrigLoop->getHeader()->getModule()->getDataLayout();
 3464   for (PHINode &Phi : OrigLoop->getHeader()->phis()) {
 3981   assert(PN->getParent() == OrigLoop->getHeader() &&
 4007   const DataLayout &DL = OrigLoop->getHeader()->getModule()->getDataLayout();
 6148     if (VF > 1 && Phi->getParent() != TheLoop->getHeader())
 6438   if (CM.blockNeedsPredication(OrigLoop->getHeader()) &&
 6601     LLVMContext &Context = L->getHeader()->getContext();
 6684   if (OrigLoop->getHeader() == BB) {
 6810   if (!Phi || Phi->getParent() == OrigLoop->getHeader())
 7202     auto *Cond = RecipeBuilder.createBlockInMask(OrigLoop->getHeader(), Plan);
 7447        llvm::shouldOptimizeForSize(L->getHeader(), PSI, BFI)))
 7467   Function *F = L->getHeader()->getParent();
 7496                     << L->getHeader()->getParent()->getName() << "\"\n");
 7502   LLVM_DEBUG(verifyFunction(*L->getHeader()->getParent()));
 7515                     << L->getHeader()->getParent()->getName() << "\" from "
 7532   Function *F = L->getHeader()->getParent();
 7711                                       L->getStartLoc(), L->getHeader())
 7716                                       L->getStartLoc(), L->getHeader())
 7724                                         L->getStartLoc(), L->getHeader())
 7732                                         L->getStartLoc(), L->getHeader())
 7757                                 L->getHeader())
 7777                                 L->getHeader())
 7797   LLVM_DEBUG(verifyFunction(*L->getHeader()->getParent()));
lib/Transforms/Vectorize/VPlan.h
 1527     return ToLoop->isLoopLatch(FromBlock) && ToBlock == ToLoop->getHeader();
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  258   VPBlockBase *HeaderVPBB = getOrCreateVPBB(TheLoop->getHeader());
tools/opt/PassPrinters.cpp
  152         .print(Out, L->getHeader()->getParent()->getParent());
tools/polly/lib/Analysis/PolyhedralInfo.cpp
   63       OS.indent(2) << L->getHeader()->getName() << ":\t";
   81   LLVM_DEBUG(dbgs() << "Loop :\t" << L->getHeader()->getName() << ":\n");
tools/polly/lib/Analysis/ScopBuilder.cpp
  617     if (BBLoop && BBLoop->getHeader() == BB && scop->contains(BBLoop))
  728   BasicBlock *HeaderBB = L->getHeader();
tools/polly/lib/Analysis/ScopDetection.cpp
 1323     Region *R = RI.getRegionFor(L->getHeader());
 1527     if (L && L->getHeader() == BB) {
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
  454 const Value *ReportLoopBound::getRemarkBB() const { return L->getHeader(); }
  458          "' in loop: " + L->getHeader()->getName();
  478 const Value *ReportLoopHasNoExit::getRemarkBB() const { return L->getHeader(); }
  481   return "Loop " + L->getHeader()->getName() + " has no exit.";
  502   return L->getHeader();
  506   return "Loop " + L->getHeader()->getName() + " has multiple exits.";
  527   return L->getHeader();
  531   return "Not all latches of loop " + L->getHeader()->getName() +
tools/polly/lib/CodeGen/BlockGenerators.cpp
 1582     if (L == nullptr || L->getHeader() != BB || !R->contains(L))
tools/polly/lib/CodeGen/IRBuilder.cpp
  104   BasicBlock *Header = L->getHeader();
unittests/Analysis/LoopInfoTest.cpp
  194   ASSERT_EQ("loop.0", L_0.getHeader()->getName());
  196   ASSERT_EQ("loop.0.0", L_0_0.getHeader()->getName());
  198   ASSERT_EQ("loop.0.1", L_0_1.getHeader()->getName());
  200   ASSERT_EQ("loop.0.2", L_0_2.getHeader()->getName());
  202   ASSERT_EQ("loop.1", L_1.getHeader()->getName());
  204   ASSERT_EQ("loop.1.0", L_1_0.getHeader()->getName());
  206   ASSERT_EQ("loop.1.1", L_1_1.getHeader()->getName());
  208   ASSERT_EQ("loop.1.2", L_1_2.getHeader()->getName());
unittests/Transforms/Scalar/LoopPassManagerTest.cpp
  783         Function &F = *L.getHeader()->getParent();
 1387     IDomBB.getTerminator()->replaceUsesOfWith(L.getHeader(),
unittests/Transforms/Utils/CloningTest.cpp
  427         EXPECT_EQ(Header, L->getHeader());
unittests/Transforms/Vectorize/VPlanLoopInfoTest.cpp
   80   EXPECT_EQ(H, VPLp->getHeader());