LLVM API Documentation
#include <R600RegisterInfo.h>
Public Member Functions | |
R600RegisterInfo (const AMDGPUSubtarget &st) | |
BitVector | getReservedRegs (const MachineFunction &MF) const override |
unsigned | getHWRegChan (unsigned reg) const |
get the HW encoding for a register's channel. | |
unsigned | getHWRegIndex (unsigned Reg) const override |
const TargetRegisterClass * | getCFGStructurizerRegClass (MVT VT) const override |
get the register class of the specified type to use in the CFGStructurizer | |
const RegClassWeight & | getRegClassWeight (const TargetRegisterClass *RC) const override |
bool | isPhysRegLiveAcrossClauses (unsigned Reg) const |
Public Attributes | |
RegClassWeight | RCW |
Definition at line 24 of file R600RegisterInfo.h.
Definition at line 23 of file R600RegisterInfo.cpp.
References RCW, llvm::RegClassWeight::RegWeight, and llvm::RegClassWeight::WeightLimit.
const TargetRegisterClass * R600RegisterInfo::getCFGStructurizerRegClass | ( | MVT | VT | ) | const [override, virtual] |
get the register class of the specified type to use in the CFGStructurizer
Reimplemented from llvm::AMDGPURegisterInfo.
Definition at line 65 of file R600RegisterInfo.cpp.
References llvm::MVT::i32, and llvm::MVT::SimpleTy.
unsigned R600RegisterInfo::getHWRegChan | ( | unsigned | reg | ) | const |
get the HW encoding for a register's channel.
Definition at line 57 of file R600RegisterInfo.cpp.
References HW_CHAN_SHIFT.
Referenced by llvm::R600InstrInfo::expandPostRAPseudo(), and llvm::R600InstrInfo::fitsConstReadLimitations().
unsigned R600RegisterInfo::getHWRegIndex | ( | unsigned | Reg | ) | const [override, virtual] |
Reimplemented from llvm::AMDGPURegisterInfo.
Definition at line 61 of file R600RegisterInfo.cpp.
References GET_REG_INDEX.
Referenced by llvm::R600InstrInfo::expandPostRAPseudo().
const RegClassWeight & R600RegisterInfo::getRegClassWeight | ( | const TargetRegisterClass * | RC | ) | const [override] |
Definition at line 73 of file R600RegisterInfo.cpp.
References RCW.
BitVector R600RegisterInfo::getReservedRegs | ( | const MachineFunction & | MF | ) | const [override] |
Reimplemented from llvm::AMDGPURegisterInfo.
Definition at line 27 of file R600RegisterInfo.cpp.
References llvm::sys::path::begin(), llvm::sys::path::end(), llvm::AMDGPUSubtarget::getInstrInfo(), I, llvm::R600InstrInfo::reserveIndirectRegisters(), llvm::BitVector::set(), llvm::AMDGPURegisterInfo::ST, and TII.
bool R600RegisterInfo::isPhysRegLiveAcrossClauses | ( | unsigned | Reg | ) | const |
Definition at line 78 of file R600RegisterInfo.cpp.
References llvm::TargetRegisterInfo::isVirtualRegister().
Referenced by llvm::R600InstrInfo::isLegalToSplitMBBAt().
Definition at line 25 of file R600RegisterInfo.h.
Referenced by getRegClassWeight(), and R600RegisterInfo().