aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-23 23:35:35 +0000
committerChris Lattner <sabre@nondot.org>2006-10-23 23:35:35 +0000
commit34ea07692f4cd7c007f1c5062bcebb6d03131077 (patch)
tree4df7fa188593d941e90cd974412bf192e9de5f8c /include/llvm/CodeGen/MachineBasicBlock.h
parentf2ca21f88f4e38996b6804dfa25fe7a72814736d (diff)
add two helper methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 90a779b147..85d348337a 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -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.
///