[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
Chris Lattner
sabre at nondot.org
Mon Oct 23 16:35:50 PDT 2006
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.
///
More information about the llvm-commits
mailing list