llvm.org GIT mirror llvm / release_60 lib / Target / AMDGPU / AMDGPUMCInstLower.h

Tree @release_60 (Download .tar.gz)

AMDGPUMCInstLower.h @release_60raw · history · blame

//===- 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.


namespace llvm {

class AMDGPUSubtarget;
class AsmPrinter;
class MachineBasicBlock;
class MachineInstr;
class MachineOperand;
class MCContext;
class MCExpr;
class MCInst;
class MCOperand;

class AMDGPUMCInstLower {
  MCContext &Ctx;
  const AMDGPUSubtarget &ST;
  const AsmPrinter ≈

  const MCExpr *getLongBranchBlockExpr(const MachineBasicBlock &SrcBB,
                                       const MachineOperand &MO) const;

  AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &ST,
                    const AsmPrinter &AP);

  bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;

  /// \brief Lower a MachineInstr to an MCInst
  void lower(const MachineInstr *MI, MCInst &OutMI) const;


} // End namespace llvm