1 //===-- AMDGPURegisterInfo.cpp - AMDGPU Register Information -------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Parent TargetRegisterInfo class common to all hw codegen targets.
13 //===----------------------------------------------------------------------===//
15 #include "AMDGPURegisterInfo.h"
16 #include "AMDGPUTargetMachine.h"
20 AMDGPURegisterInfo::AMDGPURegisterInfo(TargetMachine &tm,
21 const TargetInstrInfo &tii)
22 : AMDGPUGenRegisterInfo(0),
27 //===----------------------------------------------------------------------===//
28 // Function handling callbacks - Functions are a seldom used feature of GPUS, so
29 // they are not supported at this time.
30 //===----------------------------------------------------------------------===//
32 const uint16_t AMDGPURegisterInfo::CalleeSavedReg = AMDGPU::NoRegister;
34 const uint16_t* AMDGPURegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
36 return &CalleeSavedReg;
39 void AMDGPURegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
41 unsigned FIOperandNum,
42 RegScavenger *RS) const {
43 assert(!"Subroutines not supported yet");
46 unsigned AMDGPURegisterInfo::getFrameRegister(const MachineFunction &MF) const {
47 assert(!"Subroutines not supported yet");
51 #define GET_REGINFO_TARGET_DESC
52 #include "AMDGPUGenRegisterInfo.inc"