2012-12-11 22:25:42 +01: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.
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef AMDGPU_MCINSTLOWER_H
|
|
|
|
#define AMDGPU_MCINSTLOWER_H
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCInst;
|
2012-12-17 16:14:54 +01:00
|
|
|
class MCContext;
|
2012-12-11 22:25:42 +01:00
|
|
|
class MachineInstr;
|
|
|
|
|
|
|
|
class AMDGPUMCInstLower {
|
|
|
|
|
2012-12-17 16:14:54 +01:00
|
|
|
MCContext &Ctx;
|
|
|
|
|
2012-12-11 22:25:42 +01:00
|
|
|
public:
|
2012-12-17 16:14:54 +01:00
|
|
|
AMDGPUMCInstLower(MCContext &ctx);
|
2012-12-11 22:25:42 +01:00
|
|
|
|
|
|
|
/// \brief Lower a MachineInstr to an MCInst
|
|
|
|
void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
|
|
|
#endif //AMDGPU_MCINSTLOWER_H
|