mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Expose some helpful methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -159,6 +159,7 @@ public:
|
|||||||
iterator getFirstTerminator();
|
iterator getFirstTerminator();
|
||||||
|
|
||||||
void pop_front() { Insts.pop_front(); }
|
void pop_front() { Insts.pop_front(); }
|
||||||
|
void pop_back() { Insts.pop_back(); }
|
||||||
void push_back(MachineInstr *MI) { Insts.push_back(MI); }
|
void push_back(MachineInstr *MI) { Insts.push_back(MI); }
|
||||||
template<typename IT>
|
template<typename IT>
|
||||||
void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }
|
void insert(iterator I, IT S, IT E) { Insts.insert(I, S, E); }
|
||||||
@ -172,6 +173,13 @@ public:
|
|||||||
MachineInstr *remove(MachineInstr *I) { return Insts.remove(I); }
|
MachineInstr *remove(MachineInstr *I) { return Insts.remove(I); }
|
||||||
void clear() { Insts.clear(); }
|
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.
|
// Debugging methods.
|
||||||
void dump() const;
|
void dump() const;
|
||||||
void print(std::ostream &OS) const;
|
void print(std::ostream &OS) const;
|
||||||
|
Reference in New Issue
Block a user