diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-31 23:41:32 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-31 23:41:32 +0000 |
commit | 8589010e3d1d5a902992a5039cffa9d4116982c5 (patch) | |
tree | 821547f383ee6052158f69c0fe79b31511da2efb /lib/Target/Mips/MipsSEInstrInfo.cpp | |
parent | cdb3ba71ce550c5a41c84c3678225a39d6f0a414 (diff) | |
download | llvm-8589010e3d1d5a902992a5039cffa9d4116982c5.tar.gz llvm-8589010e3d1d5a902992a5039cffa9d4116982c5.tar.bz2 llvm-8589010e3d1d5a902992a5039cffa9d4116982c5.tar.xz |
Add definitions of two subclasses of MipsRegisterInfo, Mips16RegisterInfo and
MipsSERegisterInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSEInstrInfo.cpp')
-rw-r--r-- | lib/Target/Mips/MipsSEInstrInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSEInstrInfo.cpp b/lib/Target/Mips/MipsSEInstrInfo.cpp index 668efb7ffd..11ea7c00da 100644 --- a/lib/Target/Mips/MipsSEInstrInfo.cpp +++ b/lib/Target/Mips/MipsSEInstrInfo.cpp @@ -26,8 +26,13 @@ using namespace llvm; MipsSEInstrInfo::MipsSEInstrInfo(MipsTargetMachine &tm) : MipsInstrInfo(tm, tm.getRelocationModel() == Reloc::PIC_ ? Mips::B : Mips::J), + RI(*tm.getSubtargetImpl(), *this), IsN64(tm.getSubtarget<MipsSubtarget>().isABI_N64()) {} +const MipsRegisterInfo &MipsSEInstrInfo::getRegisterInfo() const { + return RI; +} + /// isLoadFromStackSlot - If the specified machine instruction is a direct /// load from a stack slot, return the virtual or physical register number of /// the destination along with the FrameIndex of the loaded stack slot. If |