add two helper methods
authorChris Lattner <sabre@nondot.org>
Mon, 23 Oct 2006 23:35:35 +0000 (23:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Oct 2006 23:35:35 +0000 (23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31143 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineBasicBlock.h

index 90a779b147f9c762020b423eca2a9a2b2f342e72..85d348337a921bf31250e005066d18d791635e9b 100644 (file)
@@ -125,8 +125,16 @@ public:
   unsigned             succ_size()  const { return Successors.size();    }
   bool                 succ_empty() const { return Successors.empty();   }
 
+  // Code Layout methods.
+  
+  /// moveBefore/moveAfter - move 'this' block before or after the specified
+  /// block.  This only moves the block, it does not modify the CFG or adjust
+  /// potential fall-throughs at the end of the block.
+  void moveBefore(MachineBasicBlock *NewAfter);
+  void moveAfter(MachineBasicBlock *NewBefore);
+  
   // Machine-CFG mutators
-
+  
   /// addSuccessor - Add succ as a successor of this MachineBasicBlock.
   /// The Predecessors list of succ is automatically updated.
   ///