1//===-- PTXRegisterInfo.cpp - PTX Register Information --------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file contains the PTX implementation of the TargetRegisterInfo class. 11// 12//===----------------------------------------------------------------------===// 13 14#include "PTXRegisterInfo.h" 15#include "PTX.h" 16#include "llvm/CodeGen/MachineFunction.h" 17#include "llvm/CodeGen/MachineInstrBuilder.h" 18#include "llvm/CodeGen/MachineRegisterInfo.h" 19#include "llvm/Target/TargetInstrInfo.h" 20#include "llvm/Support/Debug.h" 21#include "llvm/Support/raw_ostream.h" 22 23#define GET_REGINFO_TARGET_DESC 24#include "PTXGenRegisterInfo.inc" 25 26using namespace llvm; 27 28PTXRegisterInfo::PTXRegisterInfo(PTXTargetMachine &TM, 29 const TargetInstrInfo &tii) 30 // PTX does not have a return address register. 31 : PTXGenRegisterInfo(0), TII(tii) { 32} 33 34void PTXRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator /*II*/, 35 int /*SPAdj*/, 36 RegScavenger * /*RS*/) const { 37 llvm_unreachable("FrameIndex should have been previously eliminated!"); 38} 39