mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Add a member of type Mips16InstrInfo/MipsSEInstrInfo to class
Mips16RegisterInfo/MipsSERegisterInfo. No changes in functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a2ea78f132
commit
91a35f03da
@ -39,8 +39,8 @@
|
||||
using namespace llvm;
|
||||
|
||||
Mips16RegisterInfo::Mips16RegisterInfo(const MipsSubtarget &ST,
|
||||
const TargetInstrInfo &TII)
|
||||
: MipsRegisterInfo(ST, TII) {}
|
||||
const Mips16InstrInfo &I)
|
||||
: MipsRegisterInfo(ST), TII(I) {}
|
||||
|
||||
// This function eliminate ADJCALLSTACKDOWN,
|
||||
// ADJCALLSTACKUP pseudo instructions
|
||||
|
@ -17,11 +17,13 @@
|
||||
#include "MipsRegisterInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
class Mips16InstrInfo;
|
||||
|
||||
class Mips16RegisterInfo : public MipsRegisterInfo {
|
||||
const Mips16InstrInfo &TII;
|
||||
|
||||
public:
|
||||
Mips16RegisterInfo(const MipsSubtarget &Subtarget,
|
||||
const TargetInstrInfo &TII);
|
||||
Mips16RegisterInfo(const MipsSubtarget &Subtarget, const Mips16InstrInfo &I);
|
||||
|
||||
void eliminateCallFramePseudoInstr(MachineFunction &MF,
|
||||
MachineBasicBlock &MBB,
|
||||
|
@ -42,9 +42,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
MipsRegisterInfo::MipsRegisterInfo(const MipsSubtarget &ST,
|
||||
const TargetInstrInfo &tii)
|
||||
: MipsGenRegisterInfo(Mips::RA), Subtarget(ST), TII(tii) {}
|
||||
MipsRegisterInfo::MipsRegisterInfo(const MipsSubtarget &ST)
|
||||
: MipsGenRegisterInfo(Mips::RA), Subtarget(ST) {}
|
||||
|
||||
unsigned MipsRegisterInfo::getPICCallReg() { return Mips::T9; }
|
||||
|
||||
|
@ -22,16 +22,14 @@
|
||||
|
||||
namespace llvm {
|
||||
class MipsSubtarget;
|
||||
class TargetInstrInfo;
|
||||
class Type;
|
||||
|
||||
class MipsRegisterInfo : public MipsGenRegisterInfo {
|
||||
protected:
|
||||
const MipsSubtarget &Subtarget;
|
||||
const TargetInstrInfo &TII;
|
||||
|
||||
public:
|
||||
MipsRegisterInfo(const MipsSubtarget &Subtarget, const TargetInstrInfo &tii);
|
||||
MipsRegisterInfo(const MipsSubtarget &Subtarget);
|
||||
|
||||
/// getRegisterNumbering - Given the enum value for some register, e.g.
|
||||
/// Mips::RA, return the number that it corresponds to (e.g. 31).
|
||||
|
@ -40,8 +40,8 @@
|
||||
using namespace llvm;
|
||||
|
||||
MipsSERegisterInfo::MipsSERegisterInfo(const MipsSubtarget &ST,
|
||||
const TargetInstrInfo &TII)
|
||||
: MipsRegisterInfo(ST, TII) {}
|
||||
const MipsSEInstrInfo &I)
|
||||
: MipsRegisterInfo(ST), TII(I) {}
|
||||
|
||||
// This function eliminate ADJCALLSTACKDOWN,
|
||||
// ADJCALLSTACKUP pseudo instructions
|
||||
|
@ -18,11 +18,14 @@
|
||||
#include "MipsRegisterInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
class MipsSEInstrInfo;
|
||||
|
||||
class MipsSERegisterInfo : public MipsRegisterInfo {
|
||||
const MipsSEInstrInfo &TII;
|
||||
|
||||
public:
|
||||
MipsSERegisterInfo(const MipsSubtarget &Subtarget,
|
||||
const TargetInstrInfo &TII);
|
||||
const MipsSEInstrInfo &TII);
|
||||
|
||||
void eliminateCallFramePseudoInstr(MachineFunction &MF,
|
||||
MachineBasicBlock &MBB,
|
||||
|
Loading…
x
Reference in New Issue
Block a user