Path: blob/main/contrib/llvm-project/llvm/lib/Target/SystemZ/SystemZMCInstLower.h
35269 views
//===-- SystemZMCInstLower.h - Lower MachineInstr to MCInst ----*- C++ -*--===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H9#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H1011#include "llvm/MC/MCExpr.h"12#include "llvm/Support/Compiler.h"13#include "llvm/Support/DataTypes.h"1415namespace llvm {16class MCInst;17class MCOperand;18class MachineInstr;19class MachineOperand;20class SystemZAsmPrinter;2122class LLVM_LIBRARY_VISIBILITY SystemZMCInstLower {23MCContext &Ctx;24SystemZAsmPrinter &AsmPrinter;2526public:27SystemZMCInstLower(MCContext &ctx, SystemZAsmPrinter &asmPrinter);2829// Lower MachineInstr MI to MCInst OutMI.30void lower(const MachineInstr *MI, MCInst &OutMI) const;3132// Return an MCOperand for MO.33MCOperand lowerOperand(const MachineOperand& MO) const;3435// Return an MCExpr for symbolic operand MO with variant kind Kind.36const MCExpr *getExpr(const MachineOperand &MO,37MCSymbolRefExpr::VariantKind Kind) const;38};39} // end namespace llvm4041#endif424344