1 //===-- ARM.h - Top-level interface for ARM representation---- --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the entry points for global functions defined in the LLVM
13 //===----------------------------------------------------------------------===//
18 #include "ARMBaseInfo.h"
19 #include "llvm/Support/DataTypes.h"
20 #include "llvm/Support/ErrorHandling.h"
21 #include "llvm/Target/TargetMachine.h"
26 class ARMBaseTargetMachine
;
29 class formatted_raw_ostream
;
32 class TargetAsmBackend
;
37 MCCodeEmitter
*createARMMCCodeEmitter(const Target
&,
41 TargetAsmBackend
*createARMAsmBackend(const Target
&, const std::string
&);
43 FunctionPass
*createARMISelDag(ARMBaseTargetMachine
&TM
,
44 CodeGenOpt::Level OptLevel
);
46 FunctionPass
*createARMJITCodeEmitterPass(ARMBaseTargetMachine
&TM
,
49 FunctionPass
*createARMLoadStoreOptimizationPass(bool PreAlloc
= false);
50 FunctionPass
*createARMExpandPseudoPass();
51 FunctionPass
*createARMGlobalMergePass(const TargetLowering
* tli
);
52 FunctionPass
*createARMConstantIslandPass();
53 FunctionPass
*createNEONMoveFixPass();
54 FunctionPass
*createMLxExpansionPass();
55 FunctionPass
*createThumb2ITBlockPass();
56 FunctionPass
*createThumb2SizeReductionPass();
58 extern Target TheARMTarget
, TheThumbTarget
;
60 void LowerARMMachineInstrToMCInst(const MachineInstr
*MI
, MCInst
&OutMI
,
63 /// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
64 MCObjectWriter
*createARMMachObjectWriter(raw_ostream
&OS
,
69 } // end namespace llvm;