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 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_ARM_ARM_H
16 #define LLVM_LIB_TARGET_ARM_ARM_H
18 #include "llvm/Support/CodeGen.h"
19 #include "ARMBasicBlockInfo.h"
25 class ARMBaseTargetMachine;
35 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
36 CodeGenOpt::Level OptLevel);
37 FunctionPass *createA15SDOptimizerPass();
38 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
39 FunctionPass *createARMExpandPseudoPass();
40 FunctionPass *createARMConstantIslandPass();
41 FunctionPass *createMLxExpansionPass();
42 FunctionPass *createThumb2ITBlockPass();
43 FunctionPass *createARMOptimizeBarriersPass();
44 FunctionPass *createThumb2SizeReductionPass(
45 std::function<bool(const Function &)> Ftor = nullptr);
47 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
50 void computeBlockSize(MachineFunction *MF, MachineBasicBlock *MBB,
52 std::vector<BasicBlockInfo> computeAllBlockSizes(MachineFunction *MF);
54 void initializeARMLoadStoreOptPass(PassRegistry &);
55 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
57 } // end namespace llvm;