[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
Evan Cheng
evan.cheng at apple.com
Sat Feb 17 03:07:58 PST 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.55 -> 1.56
---
Log message:
Added removeLiveIn and more livein iterators.
---
Diffs of the changes: (+10 -3)
MachineBasicBlock.h | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.55 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.56
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.55 Fri Feb 9 20:36:39 2007
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Sat Feb 17 05:07:41 2007
@@ -138,11 +138,18 @@
/// is an error to add the same register to the same set more than once.
void addLiveIn(unsigned Reg) { LiveIns.push_back(Reg); }
+ /// removeLiveIn - Remove the specified register from the live in set.
+ ///
+ void removeLiveIn(unsigned Reg);
+
// Iteration support for live in sets. These sets are kept in sorted
// order by their register number.
- typedef std::vector<unsigned>::const_iterator livein_iterator;
- livein_iterator livein_begin() const { return LiveIns.begin(); }
- livein_iterator livein_end() const { return LiveIns.end(); }
+ typedef std::vector<unsigned>::iterator livein_iterator;
+ typedef std::vector<unsigned>::const_iterator const_livein_iterator;
+ livein_iterator livein_begin() { return LiveIns.begin(); }
+ const_livein_iterator livein_begin() const { return LiveIns.begin(); }
+ livein_iterator livein_end() { return LiveIns.end(); }
+ const_livein_iterator livein_end() const { return LiveIns.end(); }
bool livein_empty() const { return LiveIns.empty(); }
// Code Layout methods.
More information about the llvm-commits
mailing list