Sink ARM mc routines into MCTargetDesc.
[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 MCCodeEmitter;
33 class MCInst;
34 class MCInstrInfo;
35 class MCObjectWriter;
36 class MCSubtargetInfo;
37 class TargetAsmBackend;
38 class formatted_raw_ostream;
39
40 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
41                                CodeGenOpt::Level OptLevel);
42
43 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
44                                           JITCodeEmitter &JCE);
45
46 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
47 FunctionPass *createARMExpandPseudoPass();
48 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
49 FunctionPass *createARMConstantIslandPass();
50 FunctionPass *createNEONMoveFixPass();
51 FunctionPass *createMLxExpansionPass();
52 FunctionPass *createThumb2ITBlockPass();
53 FunctionPass *createThumb2SizeReductionPass();
54
55 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
56                                   ARMAsmPrinter &AP);
57
58 } // end namespace llvm;
59
60 #endif