LLVM 24.0.0git
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"
14
15namespace llvm {
16class AsmPrinter;
17class MCContext;
18class MCInst;
19class MCOperand;
20class MCSymbol;
21class MachineInstr;
22class MachineOperand;
23
24/// AArch64MCInstLower - This class is used to lower an MachineInstr
25/// into an MCInst.
27 MCContext &Ctx;
28 AsmPrinter &Printer;
29
30public:
32
33 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
34 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
35
37 MCSymbol *Sym) const;
39 MCSymbol *Sym) const;
41 MCSymbol *Sym) const;
43
45 unsigned TargetFlags) const;
48};
49}
50
51#endif
amdgpu next use printer
bpf unwind BPF Unwind Lower
#define LLVM_LIBRARY_VISIBILITY
Definition Compiler.h:137
IRTranslator LLVM IR MI
static MCOperand LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &AP)
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
MCOperand lowerSymbolOperandCOFF(const MachineOperand &MO, MCSymbol *Sym) const
MCSymbol * GetGlobalValueSymbol(const GlobalValue *GV, unsigned TargetFlags) const
MCOperand lowerSymbolOperandELF(const MachineOperand &MO, MCSymbol *Sym) const
AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer)
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
MCOperand lowerSymbolOperandMachO(const MachineOperand &MO, MCSymbol *Sym) const
This class is intended to be used as a driving class for all asm writers.
Definition AsmPrinter.h:94
Context object for machine code objects.
Definition MCContext.h:84
Instances of this class represent a single low-level machine instruction.
Definition MCInst.h:188
Instances of this class represent operands of the MCInst class.
Definition MCInst.h:40
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition MCSymbol.h:42
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
This is an optimization pass for GlobalISel generic memory operations.