LLVM 20.0.0git
|
#include "Target/Lanai/LanaiRegisterInfo.h"
Public Member Functions | |
LanaiRegisterInfo () | |
const uint32_t * | getCallPreservedMask (const MachineFunction &MF, CallingConv::ID) const override |
const uint16_t * | getCalleeSavedRegs (const MachineFunction *MF=nullptr) const override |
BitVector | getReservedRegs (const MachineFunction &MF) const override |
bool | requiresRegisterScavenging (const MachineFunction &MF) const override |
bool | eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override |
unsigned | getRARegister () const |
Register | getFrameRegister (const MachineFunction &MF) const override |
Register | getBaseRegister () const |
bool | hasBasePointer (const MachineFunction &MF) const |
int | getDwarfRegNum (unsigned RegNum, bool IsEH) const |
Definition at line 23 of file LanaiRegisterInfo.h.
LanaiRegisterInfo::LanaiRegisterInfo | ( | ) |
Definition at line 35 of file LanaiRegisterInfo.cpp.
|
override |
Definition at line 131 of file LanaiRegisterInfo.cpp.
References llvm::LPAC::ADD, llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), DL, llvm::RegScavenger::FindUnusedReg(), getBaseRegister(), llvm::MachineFunction::getFrameInfo(), llvm::TargetSubtargetInfo::getFrameLowering(), getFrameRegister(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineFrameInfo::getObjectOffset(), getOppositeALULoOpcode(), getRRMOpcodeVariant(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getSubtarget(), hasBasePointer(), llvm::TargetFrameLowering::hasFP(), llvm::LPCC::ICC_T, II, isALUArithLoOpcode(), llvm::isRMOpcode(), llvm::isSPLSOpcode(), llvm_unreachable, MI, llvm::Offset, llvm::RegScavenger::scavengeRegisterBackwards(), llvm::LPAC::SUB, and TII.
Register LanaiRegisterInfo::getBaseRegister | ( | ) | const |
Definition at line 263 of file LanaiRegisterInfo.cpp.
Referenced by llvm::LanaiFrameLowering::determineCalleeSaves(), eliminateFrameIndex(), and getReservedRegs().
|
override |
Definition at line 38 of file LanaiRegisterInfo.cpp.
|
override |
Definition at line 266 of file LanaiRegisterInfo.cpp.
|
override |
Definition at line 259 of file LanaiRegisterInfo.cpp.
Referenced by eliminateFrameIndex().
unsigned LanaiRegisterInfo::getRARegister | ( | ) | const |
Definition at line 256 of file LanaiRegisterInfo.cpp.
Referenced by llvm::LanaiTargetLowering::LowerRETURNADDR().
|
override |
Definition at line 42 of file LanaiRegisterInfo.cpp.
References getBaseRegister(), hasBasePointer(), and llvm::Reserved.
bool LanaiRegisterInfo::hasBasePointer | ( | const MachineFunction & | MF | ) | const |
Definition at line 246 of file LanaiRegisterInfo.cpp.
References llvm::MachineFunction::getFrameInfo(), and llvm::MachineFrameInfo::hasVarSizedObjects().
Referenced by llvm::LanaiFrameLowering::determineCalleeSaves(), eliminateFrameIndex(), and getReservedRegs().
|
override |
Definition at line 64 of file LanaiRegisterInfo.cpp.