26 #define DEBUG_TYPE "nvptx-reg-info"
30 if (RC == &NVPTX::Float32RegsRegClass) {
33 if (RC == &NVPTX::Float64RegsRegClass) {
35 }
else if (RC == &NVPTX::Int64RegsRegClass) {
55 }
else if (RC == &NVPTX::Int32RegsRegClass) {
57 }
else if (RC == &NVPTX::Int16RegsRegClass) {
59 }
else if (RC == &NVPTX::Int1RegsRegClass) {
61 }
else if (RC == &NVPTX::SpecialRegsRegClass) {
70 if (RC == &NVPTX::Float32RegsRegClass) {
73 if (RC == &NVPTX::Float64RegsRegClass) {
75 }
else if (RC == &NVPTX::Int64RegsRegClass) {
77 }
else if (RC == &NVPTX::Int32RegsRegClass) {
79 }
else if (RC == &NVPTX::Int16RegsRegClass) {
81 }
else if (RC == &NVPTX::Int1RegsRegClass) {
83 }
else if (RC == &NVPTX::SpecialRegsRegClass) {
94 #define GET_REGINFO_TARGET_DESC
95 #include "NVPTXGenRegisterInfo.inc"
100 static const MCPhysReg CalleeSavedRegs[] = { 0 };
101 return CalleeSavedRegs;
110 int SPAdj,
unsigned FIOperandNum,
112 assert(SPAdj == 0 &&
"Unexpected");
127 return NVPTX::VRFrame;
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
void ChangeToRegister(unsigned Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isDebug=false)
ChangeToRegister - Replace this operand with a new register operand of the specified value...
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
NVPTX Callee Saved Registers.
void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
void ChangeToImmediate(int64_t ImmVal)
ChangeToImmediate - Replace this operand with a new immediate operand of the specified value...
const MachineBasicBlock * getParent() const
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
const MachineOperand & getOperand(unsigned i) const
BitVector getReservedRegs(const MachineFunction &MF) const override
int64_t getObjectOffset(int ObjectIdx) const
Return the assigned stack offset of the specified object from the incoming stack pointer.
Representation of each machine instruction.
unsigned getFrameRegister(const MachineFunction &MF) const override
std::string getNVPTXRegClassStr(TargetRegisterClass const *RC)
std::string getNVPTXRegClassName(TargetRegisterClass const *RC)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())