2012-12-11 21:25:42 +00:00
|
|
|
//===- AMDGPUMCInstLower.h MachineInstr Lowering Interface ------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-03-11 08:00:27 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2014-05-16 20:56:47 +00:00
|
|
|
class AMDGPUSubtarget;
|
2012-12-11 21:25:42 +00:00
|
|
|
class MachineInstr;
|
2014-06-23 18:00:20 +00:00
|
|
|
class MCContext;
|
|
|
|
class MCInst;
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
class AMDGPUMCInstLower {
|
2012-12-17 15:14:54 +00:00
|
|
|
MCContext &Ctx;
|
2014-05-16 20:56:47 +00:00
|
|
|
const AMDGPUSubtarget &ST;
|
|
|
|
|
2012-12-11 21:25:42 +00:00
|
|
|
public:
|
2014-05-16 20:56:47 +00:00
|
|
|
AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &ST);
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
/// \brief Lower a MachineInstr to an MCInst
|
|
|
|
void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#endif
|