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 LLVM_LIB_TARGET_ARM_ARM_H 16#define LLVM_LIB_TARGET_ARM_ARM_H 17 18#include "llvm/Support/CodeGen.h" 19#include <functional> 20 21namespace llvm { 22 23class ARMAsmPrinter; 24class ARMBaseTargetMachine; 25class Function; 26class FunctionPass; 27class ImmutablePass; 28class MachineInstr; 29class MCInst; 30class TargetLowering; 31class TargetMachine; 32 33FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM, 34 CodeGenOpt::Level OptLevel); 35FunctionPass *createA15SDOptimizerPass(); 36FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false); 37FunctionPass *createARMExpandPseudoPass(); 38FunctionPass *createARMConstantIslandPass(); 39FunctionPass *createMLxExpansionPass(); 40FunctionPass *createThumb2ITBlockPass(); 41FunctionPass *createARMOptimizeBarriersPass(); 42FunctionPass *createThumb2SizeReductionPass( 43 std::function<bool(const Function &)> Ftor = nullptr); 44 45void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, 46 ARMAsmPrinter &AP); 47 48} // end namespace llvm; 49 50#endif 51