]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/lib/Target/ARM/ARM.h
MFC r234353:
[FreeBSD/stable/9.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/Target/TargetMachine.h"
22
23 namespace llvm {
24
25 class ARMAsmPrinter;
26 class ARMBaseTargetMachine;
27 class FunctionPass;
28 class JITCodeEmitter;
29 class MachineInstr;
30 class MCInst;
31
32 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
33                                CodeGenOpt::Level OptLevel);
34
35 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
36                                           JITCodeEmitter &JCE);
37
38 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
39 FunctionPass *createARMExpandPseudoPass();
40 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
41 FunctionPass *createARMConstantIslandPass();
42 FunctionPass *createMLxExpansionPass();
43 FunctionPass *createThumb2ITBlockPass();
44 FunctionPass *createThumb2SizeReductionPass();
45
46 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
47                                   ARMAsmPrinter &AP);
48
49 } // end namespace llvm;
50
51 #endif