2013-05-07 00:15:19 +08:00
|
|
|
//===-- SystemZMCInstLower.h - Lower MachineInstr to MCInst ----*- C++ -*--===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_SYSTEMZMCINSTLOWER_H
|
|
|
|
#define LLVM_SYSTEMZMCINSTLOWER_H
|
|
|
|
|
2013-09-25 18:37:17 +08:00
|
|
|
#include "llvm/MC/MCExpr.h"
|
2013-05-07 00:15:19 +08:00
|
|
|
#include "llvm/Support/Compiler.h"
|
2014-01-07 19:48:04 +08:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2013-05-07 00:15:19 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class MCInst;
|
|
|
|
class MCOperand;
|
|
|
|
class MachineInstr;
|
|
|
|
class MachineOperand;
|
|
|
|
class Mangler;
|
|
|
|
class SystemZAsmPrinter;
|
|
|
|
|
|
|
|
class LLVM_LIBRARY_VISIBILITY SystemZMCInstLower {
|
|
|
|
MCContext &Ctx;
|
|
|
|
SystemZAsmPrinter &AsmPrinter;
|
|
|
|
|
|
|
|
public:
|
2013-10-30 00:18:15 +08:00
|
|
|
SystemZMCInstLower(MCContext &ctx, SystemZAsmPrinter &asmPrinter);
|
2013-05-07 00:15:19 +08:00
|
|
|
|
|
|
|
// Lower MachineInstr MI to MCInst OutMI.
|
|
|
|
void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
|
|
|
|
2013-07-12 17:08:12 +08:00
|
|
|
// Return an MCOperand for MO.
|
2013-05-07 00:15:19 +08:00
|
|
|
MCOperand lowerOperand(const MachineOperand& MO) const;
|
|
|
|
|
2013-09-25 18:37:17 +08:00
|
|
|
// Return an MCExpr for symbolic operand MO with variant kind Kind.
|
|
|
|
const MCExpr *getExpr(const MachineOperand &MO,
|
|
|
|
MCSymbolRefExpr::VariantKind Kind) const;
|
2013-05-07 00:15:19 +08:00
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|