LLVM API Documentation
#include <XCoreRegisterInfo.h>
Public Member Functions | |
XCoreRegisterInfo () | |
const MCPhysReg * | getCalleeSavedRegs (const MachineFunction *MF=nullptr) const override |
Code Generation virtual methods... | |
BitVector | getReservedRegs (const MachineFunction &MF) const override |
bool | requiresRegisterScavenging (const MachineFunction &MF) const override |
bool | trackLivenessAfterRegAlloc (const MachineFunction &MF) const override |
bool | useFPForScavengingIndex (const MachineFunction &MF) const override |
void | eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override |
unsigned | getFrameRegister (const MachineFunction &MF) const override |
Static Public Member Functions | |
static bool | needsFrameMoves (const MachineFunction &MF) |
Return whether to emit frame moves. |
Definition at line 26 of file XCoreRegisterInfo.h.
Definition at line 44 of file XCoreRegisterInfo.cpp.
void XCoreRegisterInfo::eliminateFrameIndex | ( | MachineBasicBlock::iterator | II, |
int | SPAdj, | ||
unsigned | FIOperandNum, | ||
RegScavenger * | RS = nullptr |
||
) | const [override] |
Definition at line 261 of file XCoreRegisterInfo.cpp.
References llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), contains(), DEBUG, llvm::MachineBasicBlock::erase(), llvm::errs(), llvm::ISD::FrameIndex, llvm::MachineFunction::getFrameInfo(), llvm::TargetSubtargetInfo::getFrameLowering(), getFrameRegister(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineFunction::getName(), llvm::MachineFrameInfo::getObjectOffset(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getSubtarget(), llvm::TargetFrameLowering::hasFP(), InsertFPConstInst(), InsertFPImmInst(), InsertSPConstInst(), InsertSPImmInst(), llvm::MachineInstr::isDebugValue(), isImmU16(), isImmUs(), llvm::AArch64CC::MI, llvm::MachineInstr::print(), and TII.
const MCPhysReg * XCoreRegisterInfo::getCalleeSavedRegs | ( | const MachineFunction * | MF = nullptr | ) | const [override] |
Code Generation virtual methods...
Definition at line 211 of file XCoreRegisterInfo.cpp.
References llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getSubtarget(), and llvm::TargetFrameLowering::hasFP().
unsigned XCoreRegisterInfo::getFrameRegister | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 326 of file XCoreRegisterInfo.cpp.
References llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getSubtarget(), and llvm::TargetFrameLowering::hasFP().
Referenced by eliminateFrameIndex().
BitVector XCoreRegisterInfo::getReservedRegs | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 231 of file XCoreRegisterInfo.cpp.
References llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getSubtarget(), llvm::TargetFrameLowering::hasFP(), and llvm::BitVector::set().
bool XCoreRegisterInfo::needsFrameMoves | ( | const MachineFunction & | MF | ) | [static] |
Return whether to emit frame moves.
Definition at line 206 of file XCoreRegisterInfo.cpp.
References llvm::MachineFunction::getFunction(), llvm::MachineFunction::getMMI(), llvm::MachineModuleInfo::hasDebugInfo(), and llvm::Function::needsUnwindTableEntry().
Referenced by llvm::XCoreFrameLowering::emitPrologue(), and llvm::XCoreFrameLowering::spillCalleeSavedRegisters().
bool XCoreRegisterInfo::requiresRegisterScavenging | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 246 of file XCoreRegisterInfo.cpp.
bool XCoreRegisterInfo::trackLivenessAfterRegAlloc | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 251 of file XCoreRegisterInfo.cpp.
bool XCoreRegisterInfo::useFPForScavengingIndex | ( | const MachineFunction & | MF | ) | const [override] |
Definition at line 256 of file XCoreRegisterInfo.cpp.