26 #define DEBUG_TYPE "nvptx-reg-info"
30 if (RC == &NVPTX::Float32RegsRegClass) {
33 if (RC == &NVPTX::Float64RegsRegClass) {
35 }
else if (RC == &NVPTX::Int64RegsRegClass) {
37 }
else if (RC == &NVPTX::Int32RegsRegClass) {
39 }
else if (RC == &NVPTX::Int16RegsRegClass) {
41 }
else if (RC == &NVPTX::Int1RegsRegClass) {
43 }
else if (RC == &NVPTX::SpecialRegsRegClass) {
52 if (RC == &NVPTX::Float32RegsRegClass) {
55 if (RC == &NVPTX::Float64RegsRegClass) {
57 }
else if (RC == &NVPTX::Int64RegsRegClass) {
59 }
else if (RC == &NVPTX::Int32RegsRegClass) {
61 }
else if (RC == &NVPTX::Int16RegsRegClass) {
63 }
else if (RC == &NVPTX::Int1RegsRegClass) {
65 }
else if (RC == &NVPTX::SpecialRegsRegClass) {
76 #define GET_REGINFO_TARGET_DESC
77 #include "NVPTXGenRegisterInfo.inc"
82 static const MCPhysReg CalleeSavedRegs[] = { 0 };
83 return CalleeSavedRegs;
92 int SPAdj,
unsigned FIOperandNum,
94 assert(SPAdj == 0 &&
"Unexpected");
109 return NVPTX::VRFrame;
const MachineFunction * getParent() const
getParent - 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
bundle_iterator< MachineInstr, instr_iterator > iterator
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.
MachineFrameInfo * getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
Representation of each machine instruction.
unsigned getFrameRegister(const MachineFunction &MF) const override
std::string getNVPTXRegClassStr(TargetRegisterClass const *RC)
std::string getNVPTXRegClassName(TargetRegisterClass const *RC)