LLVM API Documentation
#include <MipsRegisterInfo.h>
Definition at line 27 of file MipsRegisterInfo.h.
MipsRegisterInfo::MipsRegisterInfo | ( | const MipsSubtarget & | Subtarget | ) |
Definition at line 45 of file MipsRegisterInfo.cpp.
void llvm::MipsRegisterInfo::adjustMipsStackFrame | ( | MachineFunction & | MF | ) | const |
Adjust the Mips stack frame.
void MipsRegisterInfo::eliminateFrameIndex | ( | MachineBasicBlock::iterator | II, |
int | SPAdj, | ||
unsigned | FIOperandNum, | ||
RegScavenger * | RS = nullptr |
||
) | const [override] |
Stack Frame Processing Methods.
Definition at line 238 of file MipsRegisterInfo.cpp.
References DEBUG, llvm::errs(), llvm::ISD::FrameIndex, llvm::MachineFunction::getFrameInfo(), llvm::MachineOperand::getIndex(), llvm::MachineFunction::getName(), llvm::MachineFrameInfo::getObjectOffset(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MachineFrameInfo::getStackSize(), and llvm::AArch64CC::MI.
const MCPhysReg * MipsRegisterInfo::getCalleeSavedRegs | ( | const MachineFunction * | MF = nullptr | ) | const [override] |
Mips Callee Saved Registers.
Definition at line 83 of file MipsRegisterInfo.cpp.
References llvm::MipsSubtarget::isABI_N32(), llvm::MipsSubtarget::isABI_N64(), llvm::MipsSubtarget::isFP64bit(), llvm::MipsSubtarget::isFPXX(), llvm::MipsSubtarget::isSingleFloat(), and Subtarget.
const uint32_t * MipsRegisterInfo::getCallPreservedMask | ( | CallingConv::ID | ) | const [override] |
Definition at line 103 of file MipsRegisterInfo.cpp.
References llvm::MipsSubtarget::isABI_N32(), llvm::MipsSubtarget::isABI_N64(), llvm::MipsSubtarget::isFP64bit(), llvm::MipsSubtarget::isFPXX(), llvm::MipsSubtarget::isSingleFloat(), and Subtarget.
unsigned MipsRegisterInfo::getFrameRegister | ( | const MachineFunction & | MF | ) | const [override] |
Debug information queries.
Definition at line 258 of file MipsRegisterInfo.cpp.
References llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getSubtarget(), llvm::TargetFrameLowering::hasFP(), llvm::MipsSubtarget::inMips16Mode(), llvm::MipsSubtarget::isABI_N64(), and Subtarget.
const uint32_t * MipsRegisterInfo::getMips16RetHelperMask | ( | ) | [static] |
Definition at line 122 of file MipsRegisterInfo.cpp.
Referenced by llvm::MipsTargetLowering::getOpndList().
unsigned MipsRegisterInfo::getPICCallReg | ( | ) | [static] |
Get PIC indirect call register.
Definition at line 48 of file MipsRegisterInfo.cpp.
const TargetRegisterClass * MipsRegisterInfo::getPointerRegClass | ( | const MachineFunction & | MF, |
unsigned | Kind | ||
) | const [override] |
Code Generation virtual methods...
Definition at line 51 of file MipsRegisterInfo.cpp.
References llvm::MipsSubtarget::isABI_N64(), and Subtarget.
static unsigned llvm::MipsRegisterInfo::getRegisterNumbering | ( | unsigned | RegEnum | ) | [static] |
getRegisterNumbering - Given the enum value for some register, e.g. Mips::RA, return the number that it corresponds to (e.g. 31).
unsigned MipsRegisterInfo::getRegPressureLimit | ( | const TargetRegisterClass * | RC, |
MachineFunction & | MF | ||
) | const [override] |
Definition at line 57 of file MipsRegisterInfo.cpp.
References llvm::TargetSubtargetInfo::getFrameLowering(), llvm::TargetRegisterClass::getID(), llvm::MachineFunction::getSubtarget(), and llvm::TargetFrameLowering::hasFP().
BitVector MipsRegisterInfo::getReservedRegs | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 127 of file MipsRegisterInfo.cpp.
References llvm::array_lengthof(), llvm::sys::path::begin(), llvm::sys::path::const_iterator::end, llvm::sys::path::end(), llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getInfo(), llvm::MachineFunction::getSubtarget(), llvm::Function::hasFnAttribute(), llvm::TargetFrameLowering::hasFP(), llvm::MipsFunctionInfo::hasSaveS2(), I, llvm::MipsSubtarget::inMips16Mode(), llvm::MipsSubtarget::isABI_O32(), llvm::MipsSubtarget::isABICalls(), llvm::MipsSubtarget::isFP64bit(), llvm::MipsSubtarget::isTargetNaCl(), llvm::BitVector::set(), Subtarget, T1, llvm::X86II::T8, llvm::MipsSubtarget::useOddSPReg(), and llvm::MipsSubtarget::useSmallSection().
Referenced by llvm::Mips16InstrInfo::makeFrame(), llvm::Mips16FrameLowering::processFunctionBeforeCalleeSavedScan(), and llvm::Mips16InstrInfo::restoreFrame().
virtual const TargetRegisterClass* llvm::MipsRegisterInfo::intRegClass | ( | unsigned | Size | ) | const [pure virtual] |
Return GPR register class.
Implemented in llvm::Mips16RegisterInfo, and llvm::MipsSERegisterInfo.
void llvm::MipsRegisterInfo::processFunctionBeforeFrameFinalized | ( | MachineFunction & | MF, |
RegScavenger * | RS = nullptr |
||
) | const |
bool MipsRegisterInfo::requiresRegisterScavenging | ( | const MachineFunction & | MF | ) | const [override] |
Reimplemented in llvm::MipsSERegisterInfo, and llvm::Mips16RegisterInfo.
Definition at line 225 of file MipsRegisterInfo.cpp.
bool MipsRegisterInfo::trackLivenessAfterRegAlloc | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 230 of file MipsRegisterInfo.cpp.
const MipsSubtarget& llvm::MipsRegisterInfo::Subtarget [protected] |
Definition at line 29 of file MipsRegisterInfo.h.
Referenced by getCalleeSavedRegs(), getCallPreservedMask(), getFrameRegister(), getPointerRegClass(), and getReservedRegs().