Go to the documentation of this file.
38 #define DEBUG_TYPE "mips16-registerinfo"
70 return &Mips::CPU16RegsRegClass;
76 int64_t SPOffset)
const {
86 MinCSFI = CSI[0].getFrameIdx();
87 MaxCSFI = CSI[CSI.size() - 1].getFrameIdx();
103 if (TFI->
hasFP(MF)) {
107 if ((
MI.getNumOperands()> OpNo+2) &&
MI.getOperand(OpNo+2).isReg())
108 FrameReg =
MI.getOperand(OpNo+2).getReg();
124 Offset = SPOffset + (int64_t)StackSize;
125 Offset +=
MI.getOperand(OpNo + 1).getImm();
130 if (!
MI.isDebugValue() &&
137 FrameReg =
TII.loadImmediate(FrameReg, Offset,
MBB, II,
DL, NewImm);
138 Offset = SignExtend64<16>(NewImm);
141 MI.getOperand(OpNo).ChangeToRegister(FrameReg,
false,
false, IsKill);
142 MI.getOperand(OpNo + 1).ChangeToImmediate(Offset);
This is an optimization pass for GlobalISel generic memory operations.
MachineInstrBuilder & UseMI
Information about stack frame layout on the target.
virtual const TargetInstrInfo * getInstrInfo() const
Reg
All possible values of the reg field in the ModR/M byte.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount)
TargetInstrInfo - Interface to description of machine instruction set.
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override
const HexagonInstrInfo * TII
virtual bool hasFP(const MachineFunction &MF) const =0
hasFP - Return true if the specified function should have a dedicated frame pointer register.
bool useFPForScavengingIndex(const MachineFunction &MF) const override
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Representation of each machine instruction.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
bool requiresRegisterScavenging(const MachineFunction &MF) const override
const std::vector< CalleeSavedInfo > & getCalleeSavedInfo() const
Returns a reference to call saved info vector for the current function.
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Wrapper class representing virtual and physical registers.
virtual const TargetFrameLowering * getFrameLowering() const
const TargetRegisterClass * intRegClass(unsigned Size) const override
Return GPR register class.
bool saveScavengerRegister(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, MachineBasicBlock::iterator &UseMI, const TargetRegisterClass *RC, Register Reg) const override
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted.
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const override
Emit instructions to copy a pair of physical registers.