This is the start of the new SjLj EH preparation pass, which will replace the
[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 "MCTargetDesc/ARMBaseInfo.h"
19 #include "MCTargetDesc/ARMMCTargetDesc.h"
20 #include "llvm/Support/DataTypes.h"
21 #include "llvm/Support/ErrorHandling.h"
22 #include "llvm/Target/TargetMachine.h"
23 #include <cassert>
24
25 namespace llvm {
26
27 class ARMAsmPrinter;
28 class ARMBaseTargetMachine;
29 class FunctionPass;
30 class JITCodeEmitter;
31 class MachineInstr;
32 class MCInst;
33
34 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
35                                CodeGenOpt::Level OptLevel);
36
37 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
38                                           JITCodeEmitter &JCE);
39
40 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
41 FunctionPass *createARMExpandPseudoPass();
42 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
43 FunctionPass *createARMConstantIslandPass();
44 FunctionPass *createARMSjLjLoweringPass();
45 FunctionPass *createNEONMoveFixPass();
46 FunctionPass *createMLxExpansionPass();
47 FunctionPass *createThumb2ITBlockPass();
48 FunctionPass *createThumb2SizeReductionPass();
49
50 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
51                                   ARMAsmPrinter &AP);
52
53 } // end namespace llvm;
54
55 #endif