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 *createA15SDOptimizerPass(); 39 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false); 40 FunctionPass *createARMExpandPseudoPass(); 41 FunctionPass *createARMGlobalBaseRegPass(); 42 FunctionPass *createARMGlobalMergePass(const TargetLowering* tli); 43 FunctionPass *createARMConstantIslandPass(); 44 FunctionPass *createMLxExpansionPass(); 45 FunctionPass *createThumb2ITBlockPass(); 46 FunctionPass *createThumb2SizeReductionPass(); 47 48 /// \brief Creates an ARM-specific Target Transformation Info pass. 49 ImmutablePass *createARMTargetTransformInfoPass(const ARMBaseTargetMachine *TM); 50 51 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, 52 ARMAsmPrinter &AP); 53 54 } // end namespace llvm; 55 56 #endif 57