aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-31 09:59:04 +0000
committerChris Lattner <sabre@nondot.org>2004-07-31 09:59:04 +0000
commitf24d879520a615a03f19ced3c7491f7b51934d1c (patch)
tree8c5c09da850af98ed77a7974f2744a2753de2710 /include
parent167cf33e1dba52b22af1e269ef0af2c33ac1dbf4 (diff)
downloadexternal_llvm-f24d879520a615a03f19ced3c7491f7b51934d1c.zip
external_llvm-f24d879520a615a03f19ced3c7491f7b51934d1c.tar.gz
external_llvm-f24d879520a615a03f19ced3c7491f7b51934d1c.tar.bz2
Expose some helpful methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 9371368..9d4ede6 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -159,6 +159,7 @@ public:
iterator getFirstTerminator();
void pop_front() { Insts.pop_front(); }
+ void pop_back() { Insts.pop_back(); }
void push_back(MachineInstr *MI) { Insts.push_back(MI); }
template<typename IT>
void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }
@@ -171,6 +172,13 @@ public:
iterator erase(iterator I, iterator E) { return Insts.erase(I, E); }
MachineInstr *remove(MachineInstr *I) { return Insts.remove(I); }
void clear() { Insts.clear(); }
+
+ /// splice - Take a block of instructions from MBB 'Other' in the range [From,
+ /// To), and insert them into this MBB right before 'where'.
+ void splice(iterator where, MachineBasicBlock *Other, iterator From,
+ iterator To) {
+ Insts.splice(where, Other->Insts, From, To);
+ }
// Debugging methods.
void dump() const;