1 //===-- PTXRegisterInfo.cpp - PTX 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 //===----------------------------------------------------------------------===//
10 // This file contains the PTX implementation of the TargetRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #include "PTXRegisterInfo.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"
23 #define GET_REGINFO_TARGET_DESC
24 #include "PTXGenRegisterInfo.inc"
28 PTXRegisterInfo::PTXRegisterInfo(PTXTargetMachine &TM,
29 const TargetInstrInfo &tii)
30 // PTX does not have a return address register.
31 : PTXGenRegisterInfo(0), TII(tii) {
34 void PTXRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator /*II*/,
36 RegScavenger * /*RS*/) const {
37 llvm_unreachable("FrameIndex should have been previously eliminated!");