Fixed some bugs.
[llvm/zpu.git] / lib / Target / ARM / ARM.h
blob8c98bc984ab7befb67e6c1631a9e561ac9c4bb0c
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.
13 //===----------------------------------------------------------------------===//
15 #ifndef TARGET_ARM_H
16 #define TARGET_ARM_H
18 #include "ARMBaseInfo.h"
19 #include "llvm/Support/ErrorHandling.h"
20 #include "llvm/Target/TargetMachine.h"
21 #include <cassert>
23 namespace llvm {
25 class ARMBaseTargetMachine;
26 class FunctionPass;
27 class JITCodeEmitter;
28 class formatted_raw_ostream;
29 class MCCodeEmitter;
30 class TargetAsmBackend;
32 MCCodeEmitter *createARMMCCodeEmitter(const Target &,
33 TargetMachine &TM,
34 MCContext &Ctx);
36 TargetAsmBackend *createARMAsmBackend(const Target &, const std::string &);
38 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
39 CodeGenOpt::Level OptLevel);
41 FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
42 JITCodeEmitter &JCE);
44 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
45 FunctionPass *createARMExpandPseudoPass();
46 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
47 FunctionPass *createARMConstantIslandPass();
48 FunctionPass *createNEONMoveFixPass();
49 FunctionPass *createThumb2ITBlockPass();
50 FunctionPass *createThumb2SizeReductionPass();
52 extern Target TheARMTarget, TheThumbTarget;
54 } // end namespace llvm;
56 #endif