LLVM 20.0.0git
|
#include "Target/Xtensa/XtensaInstrInfo.h"
Definition at line 31 of file XtensaInstrInfo.h.
XtensaInstrInfo::XtensaInstrInfo | ( | const XtensaSubtarget & | STI | ) |
Definition at line 47 of file XtensaInstrInfo.cpp.
void XtensaInstrInfo::adjustStackPtr | ( | unsigned | SP, |
int64_t | Amount, | ||
MachineBasicBlock & | MBB, | ||
MachineBasicBlock::iterator | I | ||
) | const |
Adjust SP by Amount bytes.
Definition at line 76 of file XtensaInstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineRegisterInfo::createVirtualRegister(), DL, llvm::MachineBasicBlock::end(), llvm::get(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), I, llvm::RegState::Kill, loadImmediate(), and MBB.
Referenced by llvm::XtensaFrameLowering::emitEpilogue(), and llvm::XtensaFrameLowering::emitPrologue().
|
override |
Definition at line 105 of file XtensaInstrInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), contains(), DL, llvm::get(), llvm::getKillRegState(), MBB, MBBI, and llvm::report_fatal_error().
void XtensaInstrInfo::getLoadStoreOpcodes | ( | const TargetRegisterClass * | RC, |
unsigned & | LoadOpcode, | ||
unsigned & | StoreOpcode, | ||
int64_t | offset | ||
) | const |
Definition at line 143 of file XtensaInstrInfo.cpp.
References assert().
Referenced by loadRegFromStackSlot(), and storeRegToStackSlot().
|
inline |
Definition at line 42 of file XtensaInstrInfo.h.
Referenced by llvm::XtensaSubtarget::getRegisterInfo().
|
inline |
Definition at line 76 of file XtensaInstrInfo.h.
|
override |
Definition at line 51 of file XtensaInstrInfo.cpp.
References MI.
Referenced by llvm::XtensaFrameLowering::emitEpilogue().
|
override |
Definition at line 63 of file XtensaInstrInfo.cpp.
References MI.
Referenced by llvm::XtensaFrameLowering::emitPrologue().
void XtensaInstrInfo::loadImmediate | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator | MBBI, | ||
unsigned * | Reg, | ||
int64_t | Value | ||
) | const |
Definition at line 154 of file XtensaInstrInfo.cpp.
References llvm::MachineInstrBuilder::addConstantPoolIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineRegisterInfo::createVirtualRegister(), DL, llvm::MachineBasicBlock::end(), llvm::get(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstantPoolIndex(), llvm::Function::getContext(), llvm::MachineFunction::getFunction(), llvm::Type::getInt32Ty(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), High, Idx, llvm::Low, MBB, MBBI, and llvm::report_fatal_error().
Referenced by adjustStackPtr().
|
override |
Definition at line 131 of file XtensaInstrInfo.cpp.
References llvm::addFrameReference(), llvm::BuildMI(), DL, llvm::MachineBasicBlock::end(), llvm::get(), getLoadStoreOpcodes(), MBB, and MBBI.
|
override |
Definition at line 119 of file XtensaInstrInfo.cpp.
References llvm::addFrameReference(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), DL, llvm::MachineBasicBlock::end(), llvm::get(), llvm::getKillRegState(), getLoadStoreOpcodes(), MBB, and MBBI.
Referenced by llvm::XtensaFrameLowering::spillCalleeSavedRegisters().