[PowerPC] Do not emit record-form rotates when record-form andi/andis suffices
[llvm-core.git] / lib / Target / AMDGPU / AMDGPULegalizerInfo.h
blob1cbd37c42c4b30d454626c56878d993745246d8d
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 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINELEGALIZER_H
16 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINELEGALIZER_H
18 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
20 namespace llvm {
22 class GCNTargetMachine;
23 class LLVMContext;
24 class GCNSubtarget;
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);
32 } // End llvm namespace.
33 #endif