24 cl::desc(
"Always use $gp as the global base register."));
36 if (STI.inMips16Mode())
37 return Mips::CPU16RegsRegClass;
39 if (STI.inMicroMipsMode())
40 return Mips::GPRMM16RegClass;
42 if (
TM.getABI().IsN64())
43 return Mips::GPR64RegClass;
45 return Mips::GPR32RegClass;
57 for (
int I = 0;
I < 4; ++
I) {
61 : Mips::GPR32RegClass;
76 for (
int I = 0;
I < 2; ++
I)
82 return CallsEhReturn && (FI == EhDataRegFI[0] || FI == EhDataRegFI[1]
83 || FI == EhDataRegFI[2] || FI == EhDataRegFI[3]);
87 return IsISR && (FI == ISRDataRegFI[0] || FI == ISRDataRegFI[1]);
99 if (MoveF64ViaSpillFI == -1) {
103 return MoveF64ViaSpillFI;
106 void MipsFunctionInfo::anchor() {}
This class represents lattice values for constants.
virtual const TargetRegisterInfo * getRegisterInfo() const
getRegisterInfo - If register information is available, return it.
unsigned const TargetRegisterInfo * TRI
int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSpillSlot, const AllocaInst *Alloca=nullptr, uint8_t ID=0)
Create a new statically sized stack object, returning a nonnegative identifier to represent it...
unsigned getSpillSize(const TargetRegisterClass &RC) const
Return the size in bytes of the stack slot allocated to hold a spilled copy of a register from class ...
unsigned getSpillAlignment(const TargetRegisterClass &RC) const
Return the minimum required alignment in bytes for a spill slot for a register of this class...
MachinePointerInfo callPtrInfo(const char *ES)
Create a MachinePointerInfo that has an ExternalSymbolPseudoSourceValue object representing a GOT ent...
bool globalBaseRegSet() const
void createEhDataRegsFI()
PseudoSourceValueManager & getPSVManager() const
static const TargetRegisterClass & getGlobalBaseRegClass(MachineFunction &MF)
initializer< Ty > init(const Ty &Val)
const PseudoSourceValue * getExternalSymbolCallEntry(const char *ES)
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.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This class contains a discriminated union of information about pointers in memory operands...
unsigned getGlobalBaseReg()
const PseudoSourceValue * getGlobalValueCallEntry(const GlobalValue *GV)
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
int getMoveF64ViaSpillFI(const TargetRegisterClass *RC)
const LLVMTargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
static cl::opt< bool > FixGlobalBaseReg("mips-fix-global-base-reg", cl::Hidden, cl::init(true), cl::desc("Always use $gp as the global base register."))
bool isEhDataRegFI(int FI) const
unsigned createVirtualRegister(const TargetRegisterClass *RegClass, StringRef Name="")
createVirtualRegister - Create and return a new virtual register in the function with the specified r...
bool isISRRegFI(int FI) const
~MipsFunctionInfo() override