AMDGPU: Add core backend files for R600/SI codegen v6
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUSubtarget.h
1 //=====-- AMDGPUSubtarget.h - Define Subtarget for the AMDIL ---*- C++ -*-====//
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 declares the AMDGPU specific subclass of TargetSubtarget.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef _AMDGPUSUBTARGET_H_
15 #define _AMDGPUSUBTARGET_H_
16 #include "AMDILSubtarget.h"
17
18 namespace llvm {
19
20 class AMDGPUSubtarget : public AMDILSubtarget
21 {
22   InstrItineraryData InstrItins;
23
24 public:
25   AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS) :
26     AMDILSubtarget(TT, CPU, FS)
27   {
28     InstrItins = getInstrItineraryForCPU(CPU);
29   }
30
31   const InstrItineraryData &getInstrItineraryData() const { return InstrItins; }
32 };
33
34 } // End namespace llvm
35
36 #endif // AMDGPUSUBTARGET_H_