LLVM  6.0.0svn
ARM.h
Go to the documentation of this file.
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 #include <vector>
21 
22 namespace llvm {
23 
24 class ARMAsmPrinter;
25 class ARMBaseTargetMachine;
26 class ARMRegisterBankInfo;
27 class ARMSubtarget;
28 struct BasicBlockInfo;
29 class Function;
30 class FunctionPass;
31 class InstructionSelector;
32 class MachineBasicBlock;
33 class MachineFunction;
34 class MachineInstr;
35 class MCInst;
36 class PassRegistry;
37 
38 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
39  CodeGenOpt::Level OptLevel);
40 FunctionPass *createA15SDOptimizerPass();
41 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
42 FunctionPass *createARMExpandPseudoPass();
43 FunctionPass *createARMConstantIslandPass();
44 FunctionPass *createMLxExpansionPass();
45 FunctionPass *createThumb2ITBlockPass();
46 FunctionPass *createARMOptimizeBarriersPass();
47 FunctionPass *createThumb2SizeReductionPass(
48  std::function<bool(const Function &)> Ftor = nullptr);
49 InstructionSelector *
50 createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI,
51  const ARMRegisterBankInfo &RBI);
52 
53 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
54  ARMAsmPrinter &AP);
55 
56 void computeBlockSize(MachineFunction *MF, MachineBasicBlock *MBB,
57  BasicBlockInfo &BBI);
58 std::vector<BasicBlockInfo> computeAllBlockSizes(MachineFunction *MF);
59 
60 void initializeARMLoadStoreOptPass(PassRegistry &);
61 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
62 void initializeARMConstantIslandsPass(PassRegistry &);
63 void initializeARMExpandPseudoPass(PassRegistry &);
64 
65 } // end namespace llvm
66 
67 #endif // LLVM_LIB_TARGET_ARM_ARM_H
FunctionPass * createA15SDOptimizerPass()
FunctionPass * createMLxExpansionPass()
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
FunctionPass * createARMExpandPseudoPass()
createARMExpandPseudoPass - returns an instance of the pseudo instruction expansion pass...
void initializeARMPreAllocLoadStoreOptPass(PassRegistry &)
FunctionPass * createARMOptimizeBarriersPass()
createARMOptimizeBarriersPass - Returns an instance of the remove double barriers pass...
void computeBlockSize(MachineFunction *MF, MachineBasicBlock *MBB, BasicBlockInfo &BBI)
InstructionSelector * createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI, const ARMRegisterBankInfo &RBI)
FunctionPass * createARMConstantIslandPass()
createARMConstantIslandPass - returns an instance of the constpool island pass.
void initializeARMExpandPseudoPass(PassRegistry &)
void initializeARMLoadStoreOptPass(PassRegistry &)
FunctionPass * createARMLoadStoreOptimizationPass(bool PreAlloc=false)
Returns an instance of the load / store optimization pass.
void initializeARMConstantIslandsPass(PassRegistry &)
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, ARMAsmPrinter &AP)
FunctionPass * createARMISelDag(ARMBaseTargetMachine &TM, CodeGenOpt::Level OptLevel)
createARMISelDag - This pass converts a legalized DAG into a ARM-specific DAG, ready for instruction ...
print Print MemDeps of function
IRTranslator LLVM IR MI
FunctionPass * createThumb2SizeReductionPass(std::function< bool(const Function &)> Ftor=nullptr)
createThumb2SizeReductionPass - Returns an instance of the Thumb2 size reduction pass.
FunctionPass * createThumb2ITBlockPass()
createThumb2ITBlockPass - Returns an instance of the Thumb2 IT blocks insertion pass.
std::vector< BasicBlockInfo > computeAllBlockSizes(MachineFunction *MF)