llvm.org GIT mirror llvm / dda30cd
Restore dump() methods to Loop and MachineLoop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92772 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
4 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
477477 for (iterator I = begin(), E = end(); I != E; ++I)
478478 (*I)->print(OS, Depth+2);
479479 }
480
480
481481 protected:
482482 friend class LoopInfoBase;
483483 explicit LoopBase(BlockT *BB) : ParentLoop(0) {
587587 /// block, return that block. Otherwise return null.
588588 BasicBlock *getUniqueExitBlock() const;
589589
590 void dump() const;
591
590592 private:
591593 friend class LoopInfoBase;
592594 explicit Loop(BasicBlock *BB) : LoopBase(BB) {}
4747 /// block in the linear layout, ignoring any parts of the loop not
4848 /// contiguous with the part the contains the header.
4949 MachineBasicBlock *getBottomBlock();
50
51 void dump() const;
5052
5153 private:
5254 friend class LoopInfoBase;
2020 #include "llvm/Assembly/Writer.h"
2121 #include "llvm/Support/CFG.h"
2222 #include "llvm/Support/CommandLine.h"
23 #include "llvm/Support/Debug.h"
2324 #include "llvm/ADT/DepthFirstIterator.h"
2425 #include "llvm/ADT/SmallPtrSet.h"
2526 #include
384385 return 0;
385386 }
386387
388 void Loop::dump() const {
389 print(dbgs());
390 }
391
387392 //===----------------------------------------------------------------------===//
388393 // LoopInfo implementation
389394 //
1616 #include "llvm/CodeGen/MachineLoopInfo.h"
1717 #include "llvm/CodeGen/MachineDominators.h"
1818 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/Support/Debug.h"
1920 using namespace llvm;
2021
2122 namespace llvm {
7273 }
7374 return BotMBB;
7475 }
76
77 void MachineLoop::dump() const {
78 print(dbgs());
79 }