[X86][BMI] Pull out schedule classes from bmi_andn<> and bmi_bls<>
[llvm-core.git] / lib / Target / AArch64 / AArch64MCInstLower.h
blob8f3148a98410b8b9529032b3541290ce865b8cc9
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MCINSTLOWER_H
10 #define LLVM_LIB_TARGET_AARCH64_AARCH64MCINSTLOWER_H
12 #include "llvm/ADT/Triple.h"
13 #include "llvm/Support/Compiler.h"
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;
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;
34 public:
35 AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer);
37 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;
38 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
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;
48 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
49 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
53 #endif