]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/ARM/ARM.h
Update to zstd 1.3.2
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / Target / ARM / ARM.h
1 //===-- ARM.h - Top-level interface for ARM representation ------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the entry points for global functions defined in the LLVM
11 // ARM back-end.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_LIB_TARGET_ARM_ARM_H
16 #define LLVM_LIB_TARGET_ARM_ARM_H
17
18 #include "llvm/Support/CodeGen.h"
19 #include <functional>
20 #include <vector>
21
22 namespace llvm {
23
24 class ARMAsmPrinter;
25 class ARMBaseTargetMachine;
26 class ARMRegisterBankInfo;
27 class ARMSubtarget;
28 struct BasicBlockInfo;
29 class Function;
30 class FunctionPass;
31 class InstructionSelector;
32 class MachineBasicBlock;
33 class MachineFunction;
34 class MachineInstr;
35 class MCInst;
36 class PassRegistry;
37
38 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
39                                CodeGenOpt::Level OptLevel);
40 FunctionPass *createA15SDOptimizerPass();
41 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
42 FunctionPass *createARMExpandPseudoPass();
43 FunctionPass *createARMConstantIslandPass();
44 FunctionPass *createMLxExpansionPass();
45 FunctionPass *createThumb2ITBlockPass();
46 FunctionPass *createARMOptimizeBarriersPass();
47 FunctionPass *createThumb2SizeReductionPass(
48     std::function<bool(const Function &)> Ftor = nullptr);
49 InstructionSelector *
50 createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI,
51                              const ARMRegisterBankInfo &RBI);
52
53 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
54                                   ARMAsmPrinter &AP);
55
56 void computeBlockSize(MachineFunction *MF, MachineBasicBlock *MBB,
57                       BasicBlockInfo &BBI);
58 std::vector<BasicBlockInfo> computeAllBlockSizes(MachineFunction *MF);
59
60 void initializeARMLoadStoreOptPass(PassRegistry &);
61 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
62 void initializeARMConstantIslandsPass(PassRegistry &);
63
64 } // end namespace llvm
65
66 #endif // LLVM_LIB_TARGET_ARM_ARM_H