9ff6ea037aa8e32ab4fe88739241762ccdeb97f6
[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 "ARMBaseInfo.h"
19 #include "llvm/Support/ErrorHandling.h"
20 #include "llvm/Target/TargetMachine.h"
21 #include <cassert>
22
23 namespace llvm {
24
25 class ARMBaseTargetMachine;
26 class FunctionPass;
27 class JITCodeEmitter;
28 class formatted_raw_ostream;
29
30 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
31                                CodeGenOpt::Level OptLevel);
32
33 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
34                                           JITCodeEmitter &JCE);
35
36 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
37 FunctionPass *createARMExpandPseudoPass();
38 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
39 FunctionPass *createARMConstantIslandPass();
40 FunctionPass *createNEONMoveFixPass();
41 FunctionPass *createThumb2ITBlockPass();
42 FunctionPass *createThumb2SizeReductionPass();
43
44 extern Target TheARMTarget, TheThumbTarget;
45
46 } // end namespace llvm;
47
48 #endif