[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 23 19:53:54 PDT 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.h updated: 1.35 -> 1.36
---
Log message:
Add a new differingRegisterClasses method
make overlapsAliases take pointers instead of references
fix indentation
---
Diffs of the changes: (+8 -4)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.35 llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.36
--- llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.35 Fri Jul 23 16:24:19 2004
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.h Fri Jul 23 21:53:43 2004
@@ -96,8 +96,8 @@
LiveInterval& getInterval(unsigned reg) {
Reg2IntervalMap::iterator I = r2iMap_.find(reg);
- assert(I != r2iMap_.end()&& "Interval does not exist for register");
- return *I->second;
+ assert(I != r2iMap_.end()&& "Interval does not exist for register");
+ return *I->second;
}
/// getInstructionIndex - returns the base index of instr
@@ -152,8 +152,12 @@
MachineBasicBlock::iterator mi,
LiveInterval& interval);
- bool overlapsAliases(const LiveInterval& lhs,
- const LiveInterval& rhs) const;
+ /// Return true if the two specified registers belong to different
+ /// register classes. The registers may be either phys or virt regs.
+ bool differingRegisterClasses(unsigned RegA, unsigned RegB) const;
+
+ bool overlapsAliases(const LiveInterval *lhs,
+ const LiveInterval *rhs) const;
LiveInterval& getOrCreateInterval(unsigned reg);
More information about the llvm-commits
mailing list