LLVM API Documentation
#include <MipsRegisterInfo.h>


Public Member Functions | |
| MipsRegisterInfo (const MipsSubtarget &Subtarget) | |
| void | adjustMipsStackFrame (MachineFunction &MF) const |
| Adjust the Mips stack frame. | |
| unsigned | getRegPressureLimit (const TargetRegisterClass *RC, MachineFunction &MF) const |
| Code Generation virtual methods... | |
| const uint16_t * | getCalleeSavedRegs (const MachineFunction *MF=0) const |
| Mips Callee Saved Registers. | |
| const uint32_t * | getCallPreservedMask (CallingConv::ID) const |
| BitVector | getReservedRegs (const MachineFunction &MF) const |
| virtual bool | requiresRegisterScavenging (const MachineFunction &MF) const |
| virtual bool | trackLivenessAfterRegAlloc (const MachineFunction &MF) const |
| void | eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=NULL) const |
| Stack Frame Processing Methods. | |
| void | processFunctionBeforeFrameFinalized (MachineFunction &MF, RegScavenger *RS=NULL) const |
| unsigned | getFrameRegister (const MachineFunction &MF) const |
| Debug information queries. | |
| unsigned | getEHExceptionRegister () const |
| Exception handling queries. | |
| unsigned | getEHHandlerRegister () const |
| virtual const TargetRegisterClass * | intRegClass (unsigned Size) const =0 |
| Return GPR register class. | |
Static Public Member Functions | |
| static unsigned | getRegisterNumbering (unsigned RegEnum) |
| static unsigned | getPICCallReg () |
| Get PIC indirect call register. | |
| static const uint32_t * | getMips16RetHelperMask () |
Protected Attributes | |
| const MipsSubtarget & | Subtarget |
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 = NULL |
||
| ) | const |
Stack Frame Processing Methods.
Definition at line 187 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::A64CC::MI.
| const uint16_t * MipsRegisterInfo::getCalleeSavedRegs | ( | const MachineFunction * | MF = 0 | ) | const |
Mips Callee Saved Registers.
Definition at line 78 of file MipsRegisterInfo.cpp.
References llvm::MipsSubtarget::hasMips64(), llvm::MipsSubtarget::isABI_N32(), llvm::MipsSubtarget::isABI_N64(), llvm::MipsSubtarget::isSingleFloat(), and Subtarget.
| const uint32_t * MipsRegisterInfo::getCallPreservedMask | ( | CallingConv::ID | ) | const |
Definition at line 91 of file MipsRegisterInfo.cpp.
References llvm::MipsSubtarget::hasMips64(), llvm::MipsSubtarget::isABI_N32(), llvm::MipsSubtarget::isABI_N64(), llvm::MipsSubtarget::isSingleFloat(), and Subtarget.
| unsigned MipsRegisterInfo::getEHExceptionRegister | ( | ) | const |
Exception handling queries.
Definition at line 220 of file MipsRegisterInfo.cpp.
References llvm_unreachable.
| unsigned MipsRegisterInfo::getEHHandlerRegister | ( | ) | const |
Definition at line 225 of file MipsRegisterInfo.cpp.
References llvm_unreachable.
| unsigned MipsRegisterInfo::getFrameRegister | ( | const MachineFunction & | MF | ) | const |
Debug information queries.
Definition at line 207 of file MipsRegisterInfo.cpp.
References llvm::TargetMachine::getFrameLowering(), llvm::MachineFunction::getTarget(), llvm::TargetFrameLowering::hasFP(), llvm::MipsSubtarget::inMips16Mode(), llvm::MipsSubtarget::isABI_N64(), and Subtarget.
| const uint32_t * MipsRegisterInfo::getMips16RetHelperMask | ( | ) | [static] |
Definition at line 103 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.
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 |
Code Generation virtual methods...
Definition at line 52 of file MipsRegisterInfo.cpp.
References llvm::TargetMachine::getFrameLowering(), llvm::TargetRegisterClass::getID(), llvm::MachineFunction::getTarget(), and llvm::TargetFrameLowering::hasFP().
| BitVector MipsRegisterInfo::getReservedRegs | ( | const MachineFunction & | MF | ) | const |
Definition at line 108 of file MipsRegisterInfo.cpp.
References llvm::array_lengthof(), llvm::sys::path::begin(), llvm::sys::path::end(), llvm::TargetMachine::getFrameLowering(), llvm::MachineFunction::getTarget(), llvm::TargetFrameLowering::hasFP(), llvm::MipsSubtarget::hasMips64(), I, llvm::MipsSubtarget::inMips16Mode(), llvm::BitVector::set(), Subtarget, and llvm::MipsSubtarget::useSmallSection().
| 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 = NULL |
||
| ) | const |
| bool MipsRegisterInfo::requiresRegisterScavenging | ( | const MachineFunction & | MF | ) | const [virtual] |
Reimplemented in llvm::MipsSERegisterInfo, and llvm::Mips16RegisterInfo.
Definition at line 174 of file MipsRegisterInfo.cpp.
| bool MipsRegisterInfo::trackLivenessAfterRegAlloc | ( | const MachineFunction & | MF | ) | const [virtual] |
Definition at line 179 of file MipsRegisterInfo.cpp.
const MipsSubtarget& llvm::MipsRegisterInfo::Subtarget [protected] |
Definition at line 29 of file MipsRegisterInfo.h.
Referenced by getCalleeSavedRegs(), getCallPreservedMask(), getFrameRegister(), and getReservedRegs().