mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +00:00
add two helper methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2ca21f88f
commit
34ea07692f
@ -125,8 +125,16 @@ public:
|
|||||||
unsigned succ_size() const { return Successors.size(); }
|
unsigned succ_size() const { return Successors.size(); }
|
||||||
bool succ_empty() const { return Successors.empty(); }
|
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
|
// Machine-CFG mutators
|
||||||
|
|
||||||
/// addSuccessor - Add succ as a successor of this MachineBasicBlock.
|
/// addSuccessor - Add succ as a successor of this MachineBasicBlock.
|
||||||
/// The Predecessors list of succ is automatically updated.
|
/// The Predecessors list of succ is automatically updated.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user