|
LLVM 24.0.0git
|
SI implementation of the TargetRegisterInfo class. More...
#include "SIRegisterInfo.h"#include "AMDGPURegisterBankInfo.h"#include "GCNSubtarget.h"#include "MCTargetDesc/AMDGPUInstPrinter.h"#include "SIMachineFunctionInfo.h"#include "llvm/CodeGen/LiveIntervals.h"#include "llvm/CodeGen/LiveRegUnits.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/RegisterScavenging.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"#include "AMDGPUGenRegisterInfo.inc"Go to the source code of this file.
Classes | |
| struct | llvm::SGPRSpillBuilder |
| struct | llvm::SGPRSpillBuilder::PerVGPRData |
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
| #define | DEBUG_TYPE "amdgpu-si-register-info" |
| #define | GET_REGINFO_TARGET_DESC |
Variables | |
| static const std::array< unsigned, 17 > | SubRegFromChannelTableWidthMap |
SI implementation of the TargetRegisterInfo class.
Definition in file SIRegisterInfo.cpp.
| #define DEBUG_TYPE "amdgpu-si-register-info" |
Definition at line 27 of file SIRegisterInfo.cpp.
| #define GET_REGINFO_TARGET_DESC |
Definition at line 31 of file SIRegisterInfo.cpp.
|
static |
Definition at line 1479 of file SIRegisterInfo.cpp.
References llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addImm(), llvm::BuildMI(), llvm::MachineInstrBuilder::cloneMemRefs(), DL, llvm::MachineInstrBuilder::getInstr(), getOffsetMUBUFLoad(), getOffsetMUBUFStore(), MBB, MI, llvm::Offset, Opc, Reg, spillVGPRtoAGPR(), and TII.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
static |
Definition at line 44 of file SIRegisterInfo.cpp.
References llvm::LLVMContext::diagnose(), llvm::Function::getContext(), and MI.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SGPRSpillBuilder::prepare(), and llvm::SGPRSpillBuilder::readWriteTmpVGPR().
|
static |
Definition at line 2517 of file SIRegisterInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineOperand::isImm(), llvm::Register::isValid(), llvm::Offset, and wrapsAround32().
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
static |
Definition at line 3887 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getAGPRClassForBitWidth().
|
static |
Definition at line 3961 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getVectorSuperClassForBitWidth().
|
static |
Definition at line 3777 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getVGPRClassForBitWidth().
|
static |
Definition at line 3855 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getAGPRClassForBitWidth().
|
static |
Definition at line 3929 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getVectorSuperClassForBitWidth().
|
static |
Definition at line 3745 of file SIRegisterInfo.cpp.
References llvm::BitWidth.
Referenced by llvm::SIRegisterInfo::getVGPRClassForBitWidth().
|
static |
Definition at line 1517 of file SIRegisterInfo.cpp.
References llvm::AMDGPU::getFlatScratchInstSTfromSS(), llvm::AMDGPU::getFlatScratchInstSVfromSS(), llvm::AMDGPU::hasNamedOperand(), llvm_unreachable, and TII.
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore().
|
static |
Definition at line 1127 of file SIRegisterInfo.cpp.
References llvm_unreachable, MI, llvm::popcount(), TII, and uint64_t.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
static |
Definition at line 1397 of file SIRegisterInfo.cpp.
References Opc.
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore().
|
static |
Definition at line 1374 of file SIRegisterInfo.cpp.
References Opc.
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore().
|
static |
Definition at line 1339 of file SIRegisterInfo.cpp.
References Opc.
Referenced by buildMUBUFOffsetLoadStore().
|
static |
Definition at line 1316 of file SIRegisterInfo.cpp.
References Opc.
Referenced by buildMUBUFOffsetLoadStore().
|
static |
Definition at line 845 of file SIRegisterInfo.cpp.
References assert(), MI, and TRI.
Referenced by llvm::SIRegisterInfo::needsFrameBaseReg().
|
static |
Definition at line 2524 of file SIRegisterInfo.cpp.
References MI.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
static |
Definition at line 1433 of file SIRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::SIFrameLowering::buildCFIForVRegToVRegSpill(), llvm::BuildMI(), DL, llvm::MachineFunction::getInfo(), llvm::getKillRegState(), llvm::MachineFunction::getRegInfo(), llvm::SIMachineFunctionInfo::getVGPRToAGPRSpill(), MBB, MI, MRI, Opc, Reg, llvm::MachineInstr::ReloadReuse, llvm::MachineInstr::setAsmPrinterFlag(), TII, and TRI.
Referenced by buildMUBUFOffsetLoadStore(), and llvm::SIRegisterInfo::buildSpillLoadStore().
|
static |
Definition at line 2509 of file SIRegisterInfo.cpp.
References LHS, RHS, and uint64_t.
Referenced by foldingOffsetChangesCarry().
Definition at line 41 of file SIRegisterInfo.cpp.
Referenced by llvm::SIRegisterInfo::getSubRegFromChannel(), and llvm::SIRegisterInfo::SIRegisterInfo().