summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon/AMDGPUSubtarget.h
blob: 96ace88b47686dcfc599e81dfc985b922360e092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//=====-- AMDGPUSubtarget.h - Define Subtarget for the AMDIL ---*- C++ -*-====//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//==-----------------------------------------------------------------------===//
//
// This file declares the AMDGPU specific subclass of TargetSubtarget.
//
//===----------------------------------------------------------------------===//

#ifndef _AMDGPUSUBTARGET_H_
#define _AMDGPUSUBTARGET_H_
#include "AMDILSubtarget.h"

namespace llvm {

class AMDGPUSubtarget : public AMDILSubtarget
{
  InstrItineraryData InstrItins;

public:
  AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS) :
    AMDILSubtarget(TT, CPU, FS)
  {
    InstrItins = getInstrItineraryForCPU(CPU);
  }

  const InstrItineraryData &getInstrItineraryData() const { return InstrItins; }
};

} // End namespace llvm

#endif // AMDGPUSUBTARGET_H_