LLVM
17.0.0git
lib
Target
AArch64
AArch64MCInstLower.h
Go to the documentation of this file.
1
//===-- AArch64MCInstLower.h - Lower MachineInstr to MCInst ---------------===//
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_AARCH64_AARCH64MCINSTLOWER_H
10
#define LLVM_LIB_TARGET_AARCH64_AARCH64MCINSTLOWER_H
11
12
#include "
llvm/Support/Compiler.h
"
13
#include "
llvm/TargetParser/Triple.h
"
14
15
namespace
llvm
{
16
class
AsmPrinter;
17
class
MCContext;
18
class
MCInst;
19
class
MCOperand;
20
class
MCSymbol
;
21
class
MachineInstr;
22
class
MachineOperand;
23
24
/// AArch64MCInstLower - This class is used to lower an MachineInstr
25
/// into an MCInst.
26
class
LLVM_LIBRARY_VISIBILITY
AArch64MCInstLower
{
27
MCContext
&Ctx;
28
AsmPrinter
&
Printer
;
29
Triple
TargetTriple;
30
31
public
:
32
AArch64MCInstLower
(
MCContext
&ctx,
AsmPrinter
&
printer
);
33
34
bool
lowerOperand(
const
MachineOperand
&MO,
MCOperand
&MCOp)
const
;
35
void
Lower
(
const
MachineInstr
*
MI
,
MCInst
&OutMI)
const
;
36
37
MCOperand
lowerSymbolOperandDarwin(
const
MachineOperand
&MO,
38
MCSymbol
*
Sym
)
const
;
39
MCOperand
lowerSymbolOperandELF(
const
MachineOperand
&MO,
40
MCSymbol
*
Sym
)
const
;
41
MCOperand
lowerSymbolOperandCOFF(
const
MachineOperand
&MO,
42
MCSymbol
*
Sym
)
const
;
43
MCOperand
LowerSymbolOperand
(
const
MachineOperand
&MO,
MCSymbol
*
Sym
)
const
;
44
45
MCSymbol
*GetGlobalAddressSymbol(
const
MachineOperand
&MO)
const
;
46
MCSymbol
*GetExternalSymbolSymbol(
const
MachineOperand
&MO)
const
;
47
};
48
}
49
50
#endif
Compiler.h
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:126
printer
dxil pretty printer
Definition:
DXILPrettyPrinter.cpp:53
Sym
Symbol * Sym
Definition:
ELF_riscv.cpp:463
MI
IRTranslator LLVM IR MI
Definition:
IRTranslator.cpp:109
Printer
Memory true print Memory SSA Printer
Definition:
MemorySSA.cpp:78
LowerSymbolOperand
static MCOperand LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP)
Definition:
SparcMCInstLower.cpp:29
Triple.h
llvm::AArch64MCInstLower
AArch64MCInstLower - This class is used to lower an MachineInstr into an MCInst.
Definition:
AArch64MCInstLower.h:26
llvm::AsmPrinter
This class is intended to be used as a driving class for all asm writers.
Definition:
AsmPrinter.h:84
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:76
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:184
llvm::MCOperand
Instances of this class represent operands of the MCInst class.
Definition:
MCInst.h:36
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
llvm::MachineInstr
Representation of each machine instruction.
Definition:
MachineInstr.h:68
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition:
MachineOperand.h:48
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:44
llvm::ISD::MCSymbol
@ MCSymbol
Definition:
ISDOpcodes.h:172
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::HexPrintStyle::Lower
@ Lower
Generated on Thu Jun 1 2023 17:32:12 for LLVM by
1.9.6