LLVM
10.0.0
lib
Target
SystemZ
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
12
#include "
llvm/MC/MCExpr.h
"
13
#include "
llvm/Support/Compiler.h
"
14
#include "
llvm/Support/DataTypes.h
"
15
16
namespace
llvm
{
17
class
MCInst;
18
class
MCOperand;
19
class
MachineInstr;
20
class
MachineOperand;
21
class
Mangler;
22
class
SystemZAsmPrinter;
23
24
class
LLVM_LIBRARY_VISIBILITY
SystemZMCInstLower
{
25
MCContext
&Ctx;
26
SystemZAsmPrinter
&
AsmPrinter
;
27
28
public
:
29
SystemZMCInstLower
(
MCContext
&ctx,
SystemZAsmPrinter
&asmPrinter);
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,
39
MCSymbolRefExpr::VariantKind
Kind
)
const
;
40
};
41
}
// end namespace llvm
42
43
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::SystemZAsmPrinter
Definition:
SystemZAsmPrinter.h:25
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:35
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:65
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:158
Compiler.h
llvm::AsmPrinter
This class is intended to be used as a driving class for all asm writers.
Definition:
AsmPrinter.h:80
MCExpr.h
llvm::MCSymbolRefExpr::VariantKind
VariantKind
Definition:
MCExpr.h:171
LLVM_LIBRARY_VISIBILITY
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
Definition:
Compiler.h:129
llvm::SystemZMCInstLower
Definition:
SystemZMCInstLower.h:24
llvm::EngineKind::Kind
Kind
Definition:
ExecutionEngine.h:515
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition:
MachineOperand.h:50
DataTypes.h
llvm::MachineInstr
Representation of each machine instruction.
Definition:
MachineInstr.h:63
llvm::HexagonMCInstrInfo::getExpr
MCExpr const & getExpr(MCExpr const &Expr)
Definition:
HexagonMCInstrInfo.cpp:278
MI
IRTranslator LLVM IR MI
Definition:
IRTranslator.cpp:93
llvm::MCOperand
Instances of this class represent operands of the MCInst class.
Definition:
MCInst.h:34
Generated on Tue Mar 24 2020 13:12:51 for LLVM by
1.8.13