2012-02-18 12:03:15 +00:00
|
|
|
//===-- PTXRegisterInfo.cpp - PTX Register Information --------------------===//
|
2010-09-18 18:52:28 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the PTX implementation of the TargetRegisterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "PTX.h"
|
|
|
|
#include "PTXRegisterInfo.h"
|
2011-06-22 16:07:03 +00:00
|
|
|
#include "llvm/CodeGen/MachineFunction.h"
|
2011-09-26 16:20:25 +00:00
|
|
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
|
|
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
|
|
|
#include "llvm/Target/TargetInstrInfo.h"
|
2011-06-22 16:07:03 +00:00
|
|
|
#include "llvm/Support/Debug.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2010-09-18 18:52:28 +00:00
|
|
|
|
2011-06-27 18:32:37 +00:00
|
|
|
#define GET_REGINFO_TARGET_DESC
|
2010-09-18 18:52:28 +00:00
|
|
|
#include "PTXGenRegisterInfo.inc"
|
2011-06-22 16:07:03 +00:00
|
|
|
|
2011-06-27 18:32:37 +00:00
|
|
|
using namespace llvm;
|
2011-06-22 16:07:03 +00:00
|
|
|
|
2011-06-24 01:44:41 +00:00
|
|
|
PTXRegisterInfo::PTXRegisterInfo(PTXTargetMachine &TM,
|
2011-09-26 16:20:25 +00:00
|
|
|
const TargetInstrInfo &tii)
|
2011-07-18 20:57:22 +00:00
|
|
|
// PTX does not have a return address register.
|
2011-09-26 16:20:25 +00:00
|
|
|
: PTXGenRegisterInfo(0), TII(tii) {
|
2011-06-24 01:44:41 +00:00
|
|
|
}
|
|
|
|
|
2012-02-19 11:37:01 +00:00
|
|
|
void PTXRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator /*II*/,
|
|
|
|
int /*SPAdj*/,
|
|
|
|
RegScavenger * /*RS*/) const {
|
2011-09-27 18:12:55 +00:00
|
|
|
llvm_unreachable("FrameIndex should have been previously eliminated!");
|
2011-06-22 16:07:03 +00:00
|
|
|
}
|