1 //===-- SystemZMCInstLower.h - Lower MachineInstr to MCInst ----*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_SYSTEMZMCINSTLOWER_H
11 #define LLVM_SYSTEMZMCINSTLOWER_H
13 #include "llvm/Support/DataTypes.h"
14 #include "llvm/Support/Compiler.h"
24 class SystemZAsmPrinter;
26 class LLVM_LIBRARY_VISIBILITY SystemZMCInstLower {
29 SystemZAsmPrinter &AsmPrinter;
32 SystemZMCInstLower(Mangler *mang, MCContext &ctx,
33 SystemZAsmPrinter &asmPrinter);
35 // Lower MachineInstr MI to MCInst OutMI.
36 void lower(const MachineInstr *MI, MCInst &OutMI) const;
38 // Return an MCOperand for MO. Return an empty operand if MO is implicit.
39 MCOperand lowerOperand(const MachineOperand& MO) const;
41 // Return an MCOperand for MO, given that it equals Symbol + Offset.
42 MCOperand lowerSymbolOperand(const MachineOperand &MO,
43 const MCSymbol *Symbol, int64_t Offset) const;
45 } // end namespace llvm