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.
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef AMDGPU_MCINSTLOWER_H
|
|
|
|
#define AMDGPU_MCINSTLOWER_H
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCInst;
|
2012-12-17 15:14:54 +00:00
|
|
|
class MCContext;
|
2012-12-11 21:25:42 +00:00
|
|
|
class MachineInstr;
|
|
|
|
|
|
|
|
class AMDGPUMCInstLower {
|
|
|
|
|
2012-12-17 15:14:54 +00:00
|
|
|
MCContext &Ctx;
|
|
|
|
|
2012-12-11 21:25:42 +00:00
|
|
|
public:
|
2012-12-17 15:14:54 +00:00
|
|
|
AMDGPUMCInstLower(MCContext &ctx);
|
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
|
|
|
|
|
|
|
|
#endif //AMDGPU_MCINSTLOWER_H
|