LLVM
20.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
#include "
llvm/TargetParser/Triple.h
"
15
16
namespace
llvm
{
17
class
AsmPrinter;
18
class
MCContext;
19
class
MCInst;
20
class
MCOperand;
21
class
MCSymbol
;
22
class
MachineInstr;
23
class
MachineOperand;
24
25
/// AArch64MCInstLower - This class is used to lower an MachineInstr
26
/// into an MCInst.
27
class
LLVM_LIBRARY_VISIBILITY
AArch64MCInstLower
{
28
MCContext
&Ctx;
29
AsmPrinter
&
Printer
;
30
Triple
TargetTriple;
31
32
public
:
33
AArch64MCInstLower
(
MCContext
&ctx,
AsmPrinter
&
printer
);
34
35
bool
lowerOperand(
const
MachineOperand
&MO,
MCOperand
&MCOp)
const
;
36
void
Lower(
const
MachineInstr
*
MI
,
MCInst
&OutMI)
const
;
37
38
MCOperand
lowerSymbolOperandMachO(
const
MachineOperand
&MO,
39
MCSymbol
*
Sym
)
const
;
40
MCOperand
lowerSymbolOperandELF(
const
MachineOperand
&MO,
41
MCSymbol
*
Sym
)
const
;
42
MCOperand
lowerSymbolOperandCOFF(
const
MachineOperand
&MO,
43
MCSymbol
*
Sym
)
const
;
44
MCOperand
LowerSymbolOperand
(
const
MachineOperand
&MO,
MCSymbol
*
Sym
)
const
;
45
46
MCSymbol
*GetGlobalValueSymbol(
const
GlobalValue
*GV,
47
unsigned
TargetFlags)
const
;
48
MCSymbol
*GetGlobalAddressSymbol(
const
MachineOperand
&MO)
const
;
49
MCSymbol
*GetExternalSymbolSymbol(
const
MachineOperand
&MO)
const
;
50
};
51
}
52
53
#endif
Compiler.h
LLVM_LIBRARY_VISIBILITY
#define LLVM_LIBRARY_VISIBILITY
Definition:
Compiler.h:133
printer
dxil pretty printer
Definition:
DXILPrettyPrinter.cpp:304
Printer
dxil pretty DXIL Metadata Pretty Printer
Definition:
DXILPrettyPrinter.cpp:305
Sym
Symbol * Sym
Definition:
ELF_riscv.cpp:479
GlobalValue.h
MI
IRTranslator LLVM IR MI
Definition:
IRTranslator.cpp:112
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:27
llvm::AsmPrinter
This class is intended to be used as a driving class for all asm writers.
Definition:
AsmPrinter.h:86
llvm::GlobalValue
Definition:
GlobalValue.h:48
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:83
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:185
llvm::MCOperand
Instances of this class represent operands of the MCInst class.
Definition:
MCInst.h:37
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:69
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:178
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Sun Dec 22 2024 00:26:18 for LLVM by
1.9.6