2013-05-07 00:15:19 +08:00
|
|
|
//===-- SystemZMCInstLower.h - Lower MachineInstr to MCInst ----*- C++ -*--===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2013-05-07 00:15:19 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
|
|
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
|
2013-05-07 00:15:19 +08:00
|
|
|
|
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
|