]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/llvm/lib/Target/R600/AMDGPUMCInstLower.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / llvm / lib / Target / R600 / AMDGPUMCInstLower.h
1 //===- AMDGPUMCInstLower.h MachineInstr Lowering Interface ------*- 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 /// \file
9 //===----------------------------------------------------------------------===//
10
11 #ifndef AMDGPU_MCINSTLOWER_H
12 #define AMDGPU_MCINSTLOWER_H
13
14 namespace llvm {
15
16 class MCInst;
17 class MCContext;
18 class MachineInstr;
19
20 class AMDGPUMCInstLower {
21
22   MCContext &Ctx;
23
24 public:
25   AMDGPUMCInstLower(MCContext &ctx);
26
27   /// \brief Lower a MachineInstr to an MCInst
28   void lower(const MachineInstr *MI, MCInst &OutMI) const;
29
30 };
31
32 } // End namespace llvm
33
34 #endif //AMDGPU_MCINSTLOWER_H