]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/lib/Target/ARM/ARM.h
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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 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 *createMLxExpansionPass();
45 FunctionPass *createThumb2ITBlockPass();
46 FunctionPass *createThumb2SizeReductionPass();
47
48 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
49                                   ARMAsmPrinter &AP);
50
51 } // end namespace llvm;
52
53 #endif