summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-24 02:53:43 +0000
committerChris Lattner <sabre@nondot.org>2004-07-24 02:53:43 +0000
commit0f4c076140cbd9360650f75a896c88dcfacc526e (patch)
tree63ed9ce15883b1016ac872068c8f6e31ade2cf7b /include/llvm/CodeGen
parentabf295fc6cfb438617e8b105022ce506f56674d8 (diff)
downloadllvm-0f4c076140cbd9360650f75a896c88dcfacc526e.tar.gz
llvm-0f4c076140cbd9360650f75a896c88dcfacc526e.tar.bz2
llvm-0f4c076140cbd9360650f75a896c88dcfacc526e.tar.xz
Add a new differingRegisterClasses method
make overlapsAliases take pointers instead of references fix indentation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index b4228ce9b6..c9db013d97 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -96,8 +96,8 @@ namespace llvm {
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 @@ namespace llvm {
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);