Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.46 -> 1.47 --- Log message: add two helper methods --- Diffs of the changes: (+9 -1) MachineBasicBlock.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletion(-) Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.46 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.47 --- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.46 Sat Oct 21 01:50:05 2006 +++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Mon Oct 23 18:35:35 2006 @@ -125,8 +125,16 @@ 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. /// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits