14 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16INSTRINFO_H 15 #define LLVM_LIB_TARGET_MIPS_MIPS16INSTRINFO_H 50 int &FrameIndex)
const override;
53 const DebugLoc &DL,
unsigned DestReg,
unsigned SrcReg,
54 bool KillSrc)
const override;
58 unsigned SrcReg,
bool isKill,
int FrameIndex,
61 int64_t
Offset)
const override;
65 unsigned DestReg,
int FrameIndex,
68 int64_t Offset)
const override;
91 unsigned &NewImm)
const;
96 return ((offset & 7) == 0) && isInt<11>(offset);
114 unsigned getAnalyzableBrOpc(
unsigned Opc)
const override;
122 unsigned Reg1,
unsigned Reg2)
const;
125 void adjustStackPtrBigUnrestricted(
unsigned SP, int64_t Amount,
132 #endif // LLVM_LIB_TARGET_MIPS_MIPS16INSTRINFO_H const MCInstrDesc & AddiuSpImm(int64_t Imm) const
This class represents lattice values for constants.
Describe properties that are true of each instruction in the target description file.
unsigned const TargetRegisterInfo * TRI
unsigned loadImmediate(unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB, MachineBasicBlock::iterator II, const DebugLoc &DL, unsigned &NewImm) const
Emit a series of instructions to load an immediate.
static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount)
void restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override
unsigned isLoadFromStackSlot(const MachineInstr &MI, int &FrameIndex) const override
isLoadFromStackSlot - If the specified machine instruction is a direct load from a stack slot...
void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const override
Adjust SP by Amount bytes.
void BuildAddiuSpImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, int64_t Imm) const
bool expandPostRAPseudo(MachineInstr &MI) const override
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
bool isCopyInstrImpl(const MachineInstr &MI, const MachineOperand *&Source, const MachineOperand *&Destination) const override
If the specific machine instruction is a instruction that moves/copies value from one register to ano...
static bool validSpImm8(int offset)
const MipsRegisterInfo & getRegisterInfo() const override
getRegisterInfo - TargetInstrInfo is a superset of MRegister info.
MachineOperand class - Representation of each machine instruction operand.
void makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
Representation of each machine instruction.
void loadRegFromStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI, int64_t Offset) const override
unsigned isStoreToStackSlot(const MachineInstr &MI, int &FrameIndex) const override
isStoreToStackSlot - If the specified machine instruction is a direct store to a stack slot...
Mips16InstrInfo(const MipsSubtarget &STI)
void storeRegToStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI, int64_t Offset) const override
unsigned getOppositeBranchOpc(unsigned Opc) const override
GetOppositeBranchOpc - Return the inverse of the specified opcode, e.g.