Switch ARM BR_JTm and BR_JTr instructions to be MC-expanded pseudos.
[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 class MCCodeEmitter;
30 class TargetAsmBackend;
31 class MachineInstr;
32 class AsmPrinter;
33 class MCInst;
34
35 MCCodeEmitter *createARMMCCodeEmitter(const Target &,
36                                       TargetMachine &TM,
37                                       MCContext &Ctx);
38
39 TargetAsmBackend *createARMAsmBackend(const Target &, const std::string &);
40
41 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
42                                CodeGenOpt::Level OptLevel);
43
44 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
45                                           JITCodeEmitter &JCE);
46
47 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
48 FunctionPass *createARMExpandPseudoPass();
49 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
50 FunctionPass *createARMConstantIslandPass();
51 FunctionPass *createNEONMoveFixPass();
52 FunctionPass *createThumb2ITBlockPass();
53 FunctionPass *createThumb2SizeReductionPass();
54
55 extern Target TheARMTarget, TheThumbTarget;
56
57 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
58                                   AsmPrinter &AP);
59   
60 } // end namespace llvm;
61
62 #endif