blob: d7d538e925991244cd77696df5e676debf2bc53e [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===- 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
14namespace llvm {
15
16class MCInst;
Tom Stellard9e90b582012-12-17 15:14:54 +000017class MCContext;
Tom Stellard75aadc22012-12-11 21:25:42 +000018class MachineInstr;
19
20class AMDGPUMCInstLower {
21
Tom Stellard9e90b582012-12-17 15:14:54 +000022 MCContext &Ctx;
23
Tom Stellard75aadc22012-12-11 21:25:42 +000024public:
Tom Stellard9e90b582012-12-17 15:14:54 +000025 AMDGPUMCInstLower(MCContext &ctx);
Tom Stellard75aadc22012-12-11 21:25:42 +000026
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