[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 31 02:59:15 PDT 2004
Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.36 -> 1.37
---
Log message:
Expose some helpful methods
---
Diffs of the changes: (+8 -0)
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.36 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.37
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.36 Fri Jul 30 20:59:11 2004
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Sat Jul 31 04:59:04 2004
@@ -159,6 +159,7 @@
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 @@
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;
More information about the llvm-commits
mailing list