1 //=====-- AMDGPUSubtarget.h - Define Subtarget for the AMDIL ---*- C++ -*-====//
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 declares the AMDGPU specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #ifndef _AMDGPUSUBTARGET_H_
15 #define _AMDGPUSUBTARGET_H_
16 #include "AMDILSubtarget.h"
20 class AMDGPUSubtarget : public AMDILSubtarget
22 InstrItineraryData InstrItins;
25 AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS) :
26 AMDILSubtarget(TT, CPU, FS)
28 InstrItins = getInstrItineraryForCPU(CPU);
31 const InstrItineraryData &getInstrItineraryData() const { return InstrItins; }
34 } // End namespace llvm
36 #endif // AMDGPUSUBTARGET_H_