Add a convenience function on SILBasicBlock to move it after another Block

Swift SVN r19633
This commit is contained in:
Arnold Schwaighofer
2014-07-07 21:05:22 +00:00
parent 7207b6ca0b
commit 2e83bdf01b
2 changed files with 13 additions and 0 deletions

View File

@@ -111,6 +111,10 @@ public:
/// \sa splitBasicBlock
SILBasicBlock *splitBasicBlockAndBranch(iterator I, SILLocation BranchLoc);
/// \brief Move the basic block to after the specified basic block in the IR.
/// The basic blocks must reside in the same function.
void moveAfter(SILBasicBlock *After);
//===--------------------------------------------------------------------===//
// SILBasicBlock Argument List Inspection and Manipulation
//===--------------------------------------------------------------------===//