39 #define DEBUG_TYPE "mips16-registerinfo" 66 TII.
copyPhysReg(MBB, UseMI, DL, Reg, Mips::T0,
true);
73 return &Mips::CPU16RegsRegClass;
79 int64_t SPOffset)
const {
89 MinCSFI = CSI[0].getFrameIdx();
90 MaxCSFI = CSI[CSI.size() - 1].getFrameIdx();
102 if (FrameIndex >= MinCSFI && FrameIndex <= MaxCSFI)
106 if (TFI->
hasFP(MF)) {
127 Offset = SPOffset + (int64_t)StackSize;
140 FrameReg = TII.
loadImmediate(FrameReg, Offset, MBB, II, DL, NewImm);
141 Offset = SignExtend64<16>(NewImm);
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This class represents lattice values for constants.
void ChangeToRegister(unsigned Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isDebug=false)
ChangeToRegister - Replace this operand with a new register operand of the specified value...
bool useFPForScavengingIndex(const MachineFunction &MF) const override
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override
unsigned getReg() const
getReg - Returns the register number.
bool saveScavengerRegister(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, MachineBasicBlock::iterator &UseMI, const TargetRegisterClass *RC, unsigned Reg) const override
bool requiresRegisterScavenging(const MachineFunction &MF) const override
const HexagonInstrInfo * TII
unsigned getNumOperands() const
Retuns the total number of operands.
virtual bool hasFP(const MachineFunction &MF) const =0
hasFP - Return true if the specified function should have a dedicated frame pointer register...
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.
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted...
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount)
virtual void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const
Emit instructions to copy a pair of physical registers.
const TargetRegisterClass * intRegClass(unsigned Size) const override
Return GPR register class.
virtual const TargetInstrInfo * getInstrInfo() const
void ChangeToImmediate(int64_t ImmVal)
ChangeToImmediate - Replace this operand with a new immediate operand of the specified value...
TargetInstrInfo - Interface to description of machine instruction set.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
MachineInstrBuilder & UseMI
This file contains the declarations for the subclasses of Constant, which represent the different fla...
bool isDebugValue() const
Information about stack frame layout on the target.
const MachineBasicBlock * getParent() const
Representation of each machine instruction.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
const std::vector< CalleeSavedInfo > & getCalleeSavedInfo() const
Returns a reference to call saved info vector for the current function.
virtual const TargetFrameLowering * getFrameLowering() const
bool isReg() const
isReg - Tests if this is a MO_Register operand.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const MachineOperand & getOperand(unsigned i) const