Temporarily Revert "Nuke the old JIT." as it's not quite ready to
[oota-llvm.git] / 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 TARGET_ARM_H
16 #define TARGET_ARM_H
17
18 #include "llvm/Support/CodeGen.h"
19
20 namespace llvm {
21
22 class ARMAsmPrinter;
23 class ARMBaseTargetMachine;
24 class FunctionPass;
25 class ImmutablePass;
26 class JITCodeEmitter;
27 class MachineInstr;
28 class MCInst;
29 class TargetLowering;
30 class TargetMachine;
31
32 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
33                                CodeGenOpt::Level OptLevel);
34
35 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
36                                           JITCodeEmitter &JCE);
37
38 FunctionPass *createA15SDOptimizerPass();
39 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
40 FunctionPass *createARMExpandPseudoPass();
41 FunctionPass *createARMGlobalBaseRegPass();
42 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
43 FunctionPass *createARMConstantIslandPass();
44 FunctionPass *createMLxExpansionPass();
45 FunctionPass *createThumb2ITBlockPass();
46 FunctionPass *createARMOptimizeBarriersPass();
47 FunctionPass *createThumb2SizeReductionPass();
48
49 /// \brief Creates an ARM-specific Target Transformation Info pass.
50 ImmutablePass *createARMTargetTransformInfoPass(const ARMBaseTargetMachine *TM);
51
52 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
53                                   ARMAsmPrinter &AP);
54
55 } // end namespace llvm;
56
57 #endif