Lines Matching defs:Loop
2120 static void PrintParentLoopComment(raw_ostream &OS, const MachineLoop *Loop,
2122 if (!Loop) return;
2123 PrintParentLoopComment(OS, Loop->getParentLoop(), FunctionNumber);
2124 OS.indent(Loop->getLoopDepth()*2)
2125 << "Parent Loop BB" << FunctionNumber << "_"
2126 << Loop->getHeader()->getNumber()
2127 << " Depth=" << Loop->getLoopDepth() << '\n';
2132 /// the loop for this basic block, with nesting.
2133 static void PrintChildLoopComment(raw_ostream &OS, const MachineLoop *Loop,
2135 // Add child loop information
2136 for (const MachineLoop *CL : *Loop) {
2138 << "Child Loop BB" << FunctionNumber << "_"
2149 // Add loop depth information
2150 const MachineLoop *Loop = LI->getLoopFor(&MBB);
2151 if (!Loop) return;
2153 MachineBasicBlock *Header = Loop->getHeader();
2154 assert(Header && "No header for loop");
2156 // If this block is not a loop header, just print out what is the loop header
2159 AP.OutStreamer.AddComment(" in Loop: Header=BB" +
2161 Twine(Loop->getHeader()->getNumber())+
2162 " Depth="+Twine(Loop->getLoopDepth()));
2166 // Otherwise, it is a loop header. Print out information about child and
2170 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber());
2173 OS.indent(Loop->getLoopDepth()*2-2);
2176 if (Loop->empty())
2178 OS << "Loop Header: Depth=" + Twine(Loop->getLoopDepth()) << '\n';
2180 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber());