2013-05-06 18:15:19 +02: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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
|
|
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
|
2013-05-06 18:15:19 +02:00
|
|
|
|
2013-09-25 12:37:17 +02:00
|
|
|
#include "llvm/MC/MCExpr.h"
|
2013-05-06 18:15:19 +02:00
|
|
|
#include "llvm/Support/Compiler.h"
|
2014-01-07 12:48:04 +01:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2013-05-06 18:15:19 +02: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-29 17:18:15 +01:00
|
|
|
SystemZMCInstLower(MCContext &ctx, SystemZAsmPrinter &asmPrinter);
|
2013-05-06 18:15:19 +02:00
|
|
|
|
|
|
|
// Lower MachineInstr MI to MCInst OutMI.
|
|
|
|
void lower(const MachineInstr *MI, MCInst &OutMI) const;
|
|
|
|
|
2013-07-12 11:08:12 +02:00
|
|
|
// Return an MCOperand for MO.
|
2013-05-06 18:15:19 +02:00
|
|
|
MCOperand lowerOperand(const MachineOperand& MO) const;
|
|
|
|
|
2013-09-25 12:37:17 +02:00
|
|
|
// Return an MCExpr for symbolic operand MO with variant kind Kind.
|
|
|
|
const MCExpr *getExpr(const MachineOperand &MO,
|
|
|
|
MCSymbolRefExpr::VariantKind Kind) const;
|
2013-05-06 18:15:19 +02:00
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|