LLVM
8.0.1
|
This file implements the targeting of the RegisterBankInfo class for AMDGPU. More...
#include "AMDGPURegisterBankInfo.h"
#include "AMDGPUInstrInfo.h"
#include "SIMachineFunctionInfo.h"
#include "SIRegisterInfo.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.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 |
Functions | |
static bool | isConstant (const MachineOperand &MO, int64_t &C) |
static bool | isInstrUniform (const MachineInstr &MI) |
This file implements the targeting of the RegisterBankInfo class for AMDGPU.
Definition in file AMDGPURegisterBankInfo.cpp.
#define GET_TARGET_REGBANK_IMPL |
Definition at line 26 of file AMDGPURegisterBankInfo.cpp.
|
static |
Definition at line 55 of file AMDGPURegisterBankInfo.cpp.
References C, llvm::tgtok::Def, llvm::MachineOperand::getCImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getRegInfo(), llvm::ConstantInt::getSExtValue(), llvm::MachineRegisterInfo::getVRegDef(), and MRI.
Referenced by llvm::AMDGPURegisterBankInfo::getInstrMapping().
|
static |
Definition at line 248 of file AMDGPURegisterBankInfo.cpp.
References assert(), llvm::Default, E, llvm::RegisterBank::getID(), llvm::RegisterBankInfo::getInstructionMapping(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::RegisterBankInfo::getOperandsMapping(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::RegisterBankInfo::getRegBank(), llvm::MachineFunction::getRegInfo(), llvm::getSizeInBits(), getValueMapping(), llvm::MachineInstr::hasOneMemOperand(), I, llvm::MachineOperand::isIntrinsicID(), llvm::MachineOperand::isReg(), llvm::AMDGPUInstrInfo::isUniformMMO(), llvm::MachineInstr::memoperands_begin(), MI, MRI, Reg, and Size.