26 #define DEBUG_TYPE "nvptx-reg-info" 30 if (RC == &NVPTX::Float32RegsRegClass)
32 if (RC == &NVPTX::Float16RegsRegClass)
38 if (RC == &NVPTX::Float16x2RegsRegClass)
40 if (RC == &NVPTX::Float64RegsRegClass)
42 if (RC == &NVPTX::Int64RegsRegClass)
62 if (RC == &NVPTX::Int32RegsRegClass)
64 if (RC == &NVPTX::Int16RegsRegClass)
66 if (RC == &NVPTX::Int1RegsRegClass)
68 if (RC == &NVPTX::SpecialRegsRegClass)
74 if (RC == &NVPTX::Float32RegsRegClass)
76 if (RC == &NVPTX::Float16RegsRegClass)
78 if (RC == &NVPTX::Float16x2RegsRegClass)
80 if (RC == &NVPTX::Float64RegsRegClass)
82 if (RC == &NVPTX::Int64RegsRegClass)
84 if (RC == &NVPTX::Int32RegsRegClass)
86 if (RC == &NVPTX::Int16RegsRegClass)
88 if (RC == &NVPTX::Int1RegsRegClass)
90 if (RC == &NVPTX::SpecialRegsRegClass)
98 #define GET_REGINFO_TARGET_DESC 99 #include "NVPTXGenRegisterInfo.inc" 104 static const MCPhysReg CalleeSavedRegs[] = { 0 };
105 return CalleeSavedRegs;
114 int SPAdj,
unsigned FIOperandNum,
116 assert(SPAdj == 0 &&
"Unexpected");
131 return NVPTX::VRFrame;
This class represents lattice values for constants.
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...
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
int64_t getObjectOffset(int ObjectIdx) const
Return the assigned stack offset of the specified object from the incoming stack pointer.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
void ChangeToImmediate(int64_t ImmVal)
ChangeToImmediate - Replace this operand with a new immediate operand of the specified value...
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
BitVector getReservedRegs(const MachineFunction &MF) const override
const MachineBasicBlock * getParent() const
Representation of each machine instruction.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
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())
const MachineOperand & getOperand(unsigned i) const