]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/ARM/ARM.h
MFV r315791: ntp 4.2.8p10.
[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 "ARMBasicBlockInfo.h"
20 #include <functional>
21
22 namespace llvm {
23
24 class ARMAsmPrinter;
25 class ARMBaseTargetMachine;
26 class Function;
27 class FunctionPass;
28 class ImmutablePass;
29 class MachineInstr;
30 class MCInst;
31 class PassRegistry;
32 class TargetLowering;
33 class TargetMachine;
34
35 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
36                                CodeGenOpt::Level OptLevel);
37 FunctionPass *createA15SDOptimizerPass();
38 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
39 FunctionPass *createARMExpandPseudoPass();
40 FunctionPass *createARMConstantIslandPass();
41 FunctionPass *createMLxExpansionPass();
42 FunctionPass *createThumb2ITBlockPass();
43 FunctionPass *createARMOptimizeBarriersPass();
44 FunctionPass *createThumb2SizeReductionPass(
45     std::function<bool(const Function &)> Ftor = nullptr);
46
47 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
48                                   ARMAsmPrinter &AP);
49
50 void computeBlockSize(MachineFunction *MF, MachineBasicBlock *MBB,
51                       BasicBlockInfo &BBI);
52 std::vector<BasicBlockInfo> computeAllBlockSizes(MachineFunction *MF);
53
54 void initializeARMLoadStoreOptPass(PassRegistry &);
55 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
56
57 } // end namespace llvm;
58
59 #endif