|
LLVM
10.0.0
|
This file implements the targeting of the RegisterBankInfo class for AMDGPU. More...
#include "AMDGPURegisterBankInfo.h"#include "AMDGPUInstrInfo.h"#include "AMDGPUSubtarget.h"#include "MCTargetDesc/AMDGPUMCTargetDesc.h"#include "SIMachineFunctionInfo.h"#include "SIRegisterInfo.h"#include "llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h"#include "llvm/CodeGen/GlobalISel/LegalizerHelper.h"#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"#include "llvm/CodeGen/GlobalISel/MIPatternMatch.h"#include "llvm/CodeGen/GlobalISel/RegisterBank.h"#include "llvm/CodeGen/GlobalISel/RegisterBankInfo.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/IR/Constants.h"#include "AMDGPUGenRegisterBank.inc"#include "AMDGPUGenRegisterBankInfo.def"Go to the source code of this file.
Macros | |
| #define | GET_TARGET_REGBANK_IMPL |
This file implements the targeting of the RegisterBankInfo class for AMDGPU.
Definition in file AMDGPURegisterBankInfo.cpp.
| #define GET_TARGET_REGBANK_IMPL |
Definition at line 30 of file AMDGPURegisterBankInfo.cpp.
Definition at line 1353 of file AMDGPURegisterBankInfo.cpp.
Referenced by llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic().
Definition at line 1345 of file AMDGPURegisterBankInfo.cpp.
Referenced by llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic().
Definition at line 1349 of file AMDGPURegisterBankInfo.cpp.
Referenced by llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic().
|
static |
Definition at line 1283 of file AMDGPURegisterBankInfo.cpp.
References llvm::MIPatternMatch::m_GAdd(), llvm::MIPatternMatch::m_ICst(), llvm::MIPatternMatch::m_Reg(), llvm::MIPatternMatch::mi_match(), and Register.
Referenced by llvm::AMDGPURegisterBankInfo::splitBufferOffsets().
Definition at line 706 of file AMDGPURegisterBankInfo.cpp.
References assert(), llvm::LLT::getElementType(), llvm::LLT::getNumElements(), llvm::LLT::getSizeInBits(), llvm::LLT::isVector(), llvm::LLT::scalar(), and llvm::LLT::scalarOrVector().
Referenced by llvm::AMDGPURegisterBankInfo::applyMappingImpl().
|
static |
Definition at line 1101 of file AMDGPURegisterBankInfo.cpp.
References llvm::MachineRegisterInfo::def_instructions(), and llvm::Other.
Referenced by llvm::AMDGPURegisterBankInfo::applyMappingWideLoad().
|
static |
Definition at line 395 of file AMDGPURegisterBankInfo.cpp.
References AMDGPUAS::CONSTANT_ADDRESS, AMDGPUAS::CONSTANT_ADDRESS_32BIT, llvm::MachineMemOperand::getAddrSpace(), llvm::MachineMemOperand::getAlignment(), llvm::MachineMemOperand::getSize(), llvm::MachineInstr::hasOneMemOperand(), llvm::MachineMemOperand::isAtomic(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::IsConst, llvm::MachineMemOperand::isInvariant(), llvm::AMDGPUInstrInfo::isUniformMMO(), llvm::MachineMemOperand::isVolatile(), llvm::MachineInstr::memoperands_begin(), and memOpHasNoClobbered().
Referenced by llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), and llvm::AMDGPURegisterBankInfo::getInstrMappingForLoad().
|
static |
Definition at line 152 of file AMDGPURegisterBankInfo.cpp.
References llvm::RegisterBank::getID().
Referenced by llvm::AMDGPURegisterBankInfo::copyCost().
|
static |
Definition at line 1340 of file AMDGPURegisterBankInfo.cpp.
References C, llvm::MIPatternMatch::m_ICst(), and llvm::MIPatternMatch::mi_match().
Referenced by llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic().
|
static |
Definition at line 388 of file AMDGPURegisterBankInfo.cpp.
References llvm::Instruction::getMetadata(), llvm::MachineMemOperand::getValue(), and I.
Referenced by isScalarLoadLegal().
|
static |
Definition at line 1214 of file AMDGPURegisterBankInfo.cpp.
References llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULT, and llvm_unreachable.
Referenced by llvm::AMDGPURegisterBankInfo::lowerScalarMinMax().
|
static |
Definition at line 2403 of file AMDGPURegisterBankInfo.cpp.
References regBankUnion().
Referenced by llvm::AMDGPURegisterBankInfo::getInstrMapping().
Definition at line 2398 of file AMDGPURegisterBankInfo.cpp.
Referenced by llvm::AMDGPURegisterBankInfo::getInstrMapping(), and regBankBoolUnion().
|
static |
Replace the current type each register in Regs has with NewTy.
Definition at line 698 of file AMDGPURegisterBankInfo.cpp.
References assert(), llvm::LLT::getSizeInBits(), llvm::MachineRegisterInfo::getType(), Reg, and llvm::MachineRegisterInfo::setType().
Referenced by llvm::AMDGPURegisterBankInfo::applyMappingImpl().
|
static |
Definition at line 1248 of file AMDGPURegisterBankInfo.cpp.
References assert().
Referenced by llvm::AMDGPURegisterBankInfo::applyMappingImpl().
1.8.13