LLVM 22.0.0git
SystemZMCInstLower.h
Go to the documentation of this file.
1//===-- SystemZMCInstLower.h - Lower MachineInstr to MCInst ----*- C++ -*--===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
10#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMCINSTLOWER_H
11
13#include "llvm/MC/MCExpr.h"
16
17namespace llvm {
18class MCInst;
19class MCOperand;
20class MachineInstr;
21class MachineOperand;
22class SystemZAsmPrinter;
23
25 MCContext &Ctx;
27
28public:
30
31 // Lower MachineInstr MI to MCInst OutMI.
32 void lower(const MachineInstr *MI, MCInst &OutMI) const;
33
34 // Return an MCOperand for MO.
35 MCOperand lowerOperand(const MachineOperand& MO) const;
36
37 // Return an MCExpr for symbolic operand MO with variant kind Kind.
38 const MCExpr *getExpr(const MachineOperand &MO, SystemZ::Specifier) const;
39};
40} // end namespace llvm
41
42#endif
#define LLVM_LIBRARY_VISIBILITY
Definition: Compiler.h:137
IRTranslator LLVM IR MI
This class is intended to be used as a driving class for all asm writers.
Definition: AsmPrinter.h:90
Context object for machine code objects.
Definition: MCContext.h:83
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:34
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:188
Instances of this class represent operands of the MCInst class.
Definition: MCInst.h:40
Representation of each machine instruction.
Definition: MachineInstr.h:72
MachineOperand class - Representation of each machine instruction operand.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18