LLVM
24.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/IR/GlobalValue.h
"
13
#include "
llvm/Support/Compiler.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
30
public
:
31
AArch64MCInstLower
(
MCContext
&ctx,
AsmPrinter
&
printer
);
32
33
bool
lowerOperand
(
const
MachineOperand
&MO,
MCOperand
&MCOp)
const
;
34
void
Lower
(
const
MachineInstr
*
MI
,
MCInst
&OutMI)
const
;
35
36
MCOperand
lowerSymbolOperandMachO
(
const
MachineOperand
&MO,
37
MCSymbol
*Sym)
const
;
38
MCOperand
lowerSymbolOperandELF
(
const
MachineOperand
&MO,
39
MCSymbol
*Sym)
const
;
40
MCOperand
lowerSymbolOperandCOFF
(
const
MachineOperand
&MO,
41
MCSymbol
*Sym)
const
;
42
MCOperand
LowerSymbolOperand
(
const
MachineOperand
&MO,
MCSymbol
*Sym)
const
;
43
44
MCSymbol
*
GetGlobalValueSymbol
(
const
GlobalValue
*GV,
45
unsigned
TargetFlags)
const
;
46
MCSymbol
*
GetGlobalAddressSymbol
(
const
MachineOperand
&MO)
const
;
47
MCSymbol
*
GetExternalSymbolSymbol
(
const
MachineOperand
&MO)
const
;
48
};
49
}
50
51
#endif
printer
amdgpu next use printer
Definition
AMDGPUNextUseAnalysis.cpp:2507
Lower
bpf unwind BPF Unwind Lower
Definition
BPFUnwind.cpp:330
Compiler.h
LLVM_LIBRARY_VISIBILITY
#define LLVM_LIBRARY_VISIBILITY
Definition
Compiler.h:137
GlobalValue.h
MI
IRTranslator LLVM IR MI
Definition
IRTranslator.cpp:876
LowerSymbolOperand
static MCOperand LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &AP)
Definition
VEMCInstLower.cpp:28
llvm::AArch64MCInstLower::GetExternalSymbolSymbol
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
Definition
AArch64MCInstLower.cpp:141
llvm::AArch64MCInstLower::lowerSymbolOperandCOFF
MCOperand lowerSymbolOperandCOFF(const MachineOperand &MO, MCSymbol *Sym) const
Definition
AArch64MCInstLower.cpp:271
llvm::AArch64MCInstLower::GetGlobalValueSymbol
MCSymbol * GetGlobalValueSymbol(const GlobalValue *GV, unsigned TargetFlags) const
Definition
AArch64MCInstLower.cpp:45
llvm::AArch64MCInstLower::lowerSymbolOperandELF
MCOperand lowerSymbolOperandELF(const MachineOperand &MO, MCSymbol *Sym) const
Definition
AArch64MCInstLower.cpp:181
llvm::AArch64MCInstLower::AArch64MCInstLower
AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer)
Definition
AArch64MCInstLower.cpp:37
llvm::AArch64MCInstLower::lowerOperand
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
Definition
AArch64MCInstLower.cpp:333
llvm::AArch64MCInstLower::GetGlobalAddressSymbol
MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
Definition
AArch64MCInstLower.cpp:41
llvm::AArch64MCInstLower::lowerSymbolOperandMachO
MCOperand lowerSymbolOperandMachO(const MachineOperand &MO, MCSymbol *Sym) const
Definition
AArch64MCInstLower.cpp:145
llvm::AsmPrinter
This class is intended to be used as a driving class for all asm writers.
Definition
AsmPrinter.h:94
llvm::GlobalValue
Definition
GlobalValue.h:49
llvm::MCContext
Context object for machine code objects.
Definition
MCContext.h:84
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition
MCInst.h:188
llvm::MCOperand
Instances of this class represent operands of the MCInst class.
Definition
MCInst.h:40
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition
MCSymbol.h:42
llvm::MachineInstr
Representation of each machine instruction.
Definition
MachineInstr.h:74
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition
MachineOperand.h:49
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
Generated on
for LLVM by
1.14.0