• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- AMDGPULegalizerInfo ---------------------------------------*- 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 /// \file
10 /// This file declares the targeting of the Machinelegalizer class for
11 /// AMDGPU.
12 /// \todo This should be generated by TableGen.
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINELEGALIZER_H
16 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINELEGALIZER_H
17 
18 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
19 
20 namespace llvm {
21 
22 class GCNTargetMachine;
23 class LLVMContext;
24 class GCNSubtarget;
25 
26 /// This class provides the information for the target register banks.
27 class AMDGPULegalizerInfo : public LegalizerInfo {
28 public:
29   AMDGPULegalizerInfo(const GCNSubtarget &ST,
30                       const GCNTargetMachine &TM);
31 };
32 } // End llvm namespace.
33 #endif
34