b5d294bdc945f1cb9822425e63f35571f493d6dd
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUInstrInfo.h
1 //===-- AMDGPUInstrInfo.h - AMDGPU Instruction Information ------*- 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 contains the definition of a TargetInstrInfo class that is common
11 // to all AMD GPUs.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef AMDGPUINSTRUCTIONINFO_H_
16 #define AMDGPUINSTRUCTIONINFO_H_
17
18 #include "AMDGPURegisterInfo.h"
19 #include "AMDILInstrInfo.h"
20
21 #include <map>
22
23 namespace llvm {
24
25 class AMDGPUTargetMachine;
26 class MachineFunction;
27 class MachineInstr;
28 class MachineInstrBuilder;
29
30 class AMDGPUInstrInfo : public AMDILInstrInfo {
31
32 public:
33   explicit AMDGPUInstrInfo(AMDGPUTargetMachine &tm);
34
35   virtual const AMDGPURegisterInfo &getRegisterInfo() const = 0;
36
37   /// convertToISA - Convert the AMDIL MachineInstr to a supported ISA
38   /// MachineInstr
39   virtual void convertToISA(MachineInstr & MI, MachineFunction &MF,
40     DebugLoc DL) const;
41
42 };
43
44 } // End llvm namespace
45
46 #endif // AMDGPUINSTRINFO_H_