diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-07-14 14:42:54 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-07-14 14:42:54 +0000 |
commit | 43d526d162c69f29a1cc6734014576eade49529b (patch) | |
tree | 1e06364189d502030d9727a5cee6da5a0139e76b /lib/Target/Mips/MipsRegisterInfo.h | |
parent | 91e1c32dd025c1595a46e2ae59b0ce6ad0f0edea (diff) | |
download | llvm-43d526d162c69f29a1cc6734014576eade49529b.tar.gz llvm-43d526d162c69f29a1cc6734014576eade49529b.tar.bz2 llvm-43d526d162c69f29a1cc6734014576eade49529b.tar.xz |
Added Subtarget support into RegisterInfo
Added HasABICall and HasAbsoluteCall (equivalent to gcc -mabicall and
-mno-shared). HasAbsoluteCall is not implemented but HasABICall is the
default for o32 ABI. Now, both should help into a more accurate
relocation types implementation.
Added IsLinux is needed to choose between asm directives.
Instruction name strings cleanup.
AsmPrinter improved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsRegisterInfo.h')
-rw-r--r-- | lib/Target/Mips/MipsRegisterInfo.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsRegisterInfo.h b/lib/Target/Mips/MipsRegisterInfo.h index 823461610d..2d0436b7a6 100644 --- a/lib/Target/Mips/MipsRegisterInfo.h +++ b/lib/Target/Mips/MipsRegisterInfo.h @@ -14,23 +14,28 @@ #ifndef MIPSREGISTERINFO_H #define MIPSREGISTERINFO_H +#include "Mips.h" #include "llvm/Target/TargetRegisterInfo.h" #include "MipsGenRegisterInfo.h.inc" namespace llvm { - +class MipsSubtarget; class TargetInstrInfo; class Type; struct MipsRegisterInfo : public MipsGenRegisterInfo { + const MipsSubtarget &Subtarget; const TargetInstrInfo &TII; - MipsRegisterInfo(const TargetInstrInfo &tii); + MipsRegisterInfo(const MipsSubtarget &Subtarget, const TargetInstrInfo &tii); /// getRegisterNumbering - Given the enum value for some register, e.g. /// Mips::RA, return the number that it corresponds to (e.g. 31). static unsigned getRegisterNumbering(unsigned RegEnum); + /// Get PIC indirect call register + static unsigned getPICCallReg(void); + /// Code Generation virtual methods... const unsigned *getCalleeSavedRegs(const MachineFunction* MF = 0) const; |