LLVM
10.0.0
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/ADT/Triple.h
"
13
#include "
llvm/Support/Compiler.h
"
14
15
namespace
llvm
{
16
class
AsmPrinter;
17
class
MCAsmInfo;
18
class
MCContext;
19
class
MCInst;
20
class
MCOperand;
21
class
MCSymbol
;
22
class
MachineInstr;
23
class
MachineModuleInfoMachO;
24
class
MachineOperand;
25
class
Mangler;
26
27
/// AArch64MCInstLower - This class is used to lower an MachineInstr
28
/// into an MCInst.
29
class
LLVM_LIBRARY_VISIBILITY
AArch64MCInstLower
{
30
MCContext
&Ctx;
31
AsmPrinter
&
Printer
;
32
Triple
TargetTriple;
33
34
public
:
35
AArch64MCInstLower
(
MCContext
&ctx,
AsmPrinter
&printer);
36
37
bool
lowerOperand(
const
MachineOperand
&MO,
MCOperand
&MCOp)
const
;
38
void
Lower(
const
MachineInstr
*
MI
,
MCInst
&OutMI)
const
;
39
40
MCOperand
lowerSymbolOperandDarwin(
const
MachineOperand
&MO,
41
MCSymbol
*Sym)
const
;
42
MCOperand
lowerSymbolOperandELF(
const
MachineOperand
&MO,
43
MCSymbol
*Sym)
const
;
44
MCOperand
lowerSymbolOperandCOFF(
const
MachineOperand
&MO,
45
MCSymbol
*Sym)
const
;
46
MCOperand
LowerSymbolOperand
(
const
MachineOperand
&MO,
MCSymbol
*Sym)
const
;
47
48
MCSymbol
*GetGlobalAddressSymbol(
const
MachineOperand
&MO)
const
;
49
MCSymbol
*GetExternalSymbolSymbol(
const
MachineOperand
&MO)
const
;
50
};
51
}
52
53
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
Triple.h
Printer
print alias Alias Set Printer
Definition:
AliasSetTracker.cpp:776
llvm::ISD::MCSymbol
Definition:
ISDOpcodes.h:140
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
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::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:43
LowerSymbolOperand
static MCOperand LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP)
Definition:
SparcMCInstLower.cpp:29
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition:
MachineOperand.h:50
llvm::MachineInstr
Representation of each machine instruction.
Definition:
MachineInstr.h:63
llvm::AArch64MCInstLower
AArch64MCInstLower - This class is used to lower an MachineInstr into an MCInst.
Definition:
AArch64MCInstLower.h:29
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:11:25 for LLVM by
1.8.13