diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-04 01:01:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-04 01:01:36 +0000 |
commit | b89383aeffa0bdaebe70c5e5bff679b369c9e315 (patch) | |
tree | 4ac006a75d7e227346df78500a8949305b7313e8 /lib/Target/MSP430 | |
parent | b65122c8736e6f8795043ca9885feb676781af4a (diff) | |
download | external_llvm-b89383aeffa0bdaebe70c5e5bff679b369c9e315.zip external_llvm-b89383aeffa0bdaebe70c5e5bff679b369c9e315.tar.gz external_llvm-b89383aeffa0bdaebe70c5e5bff679b369c9e315.tar.bz2 |
Implement MSP430RegisterInfo::getMatchingSuperRegClass to enable cross-class
coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.h b/lib/Target/MSP430/MSP430RegisterInfo.h index 56744fa..e976083 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.h +++ b/lib/Target/MSP430/MSP430RegisterInfo.h @@ -39,6 +39,13 @@ public: BitVector getReservedRegs(const MachineFunction &MF) const; const TargetRegisterClass* getPointerRegClass(unsigned Kind = 0) const; + const TargetRegisterClass * + getMatchingSuperRegClass(const TargetRegisterClass *A, + const TargetRegisterClass *B, unsigned Idx) const { + // No sub-classes makes this really easy. + return A; + } + void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const; |