LLVM  4.0.0
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 "ARMBasicBlockInfo.h"
20 #include <functional>
21 
22 namespace llvm {
23 
24 class ARMAsmPrinter;
26 class Function;
27 class FunctionPass;
28 class ImmutablePass;
29 class MachineInstr;
30 class MCInst;
31 class PassRegistry;
32 class TargetLowering;
33 class TargetMachine;
34 
36  CodeGenOpt::Level OptLevel);
38 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
45  std::function<bool(const Function &)> Ftor = nullptr);
46 
48  ARMAsmPrinter &AP);
49 
51  BasicBlockInfo &BBI);
52 std::vector<BasicBlockInfo> computeAllBlockSizes(MachineFunction *MF);
53 
56 
57 } // end namespace llvm;
58 
59 #endif
FunctionPass * createA15SDOptimizerPass()
FunctionPass * createMLxExpansionPass()
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)
BasicBlockInfo - Information about the offset and size of a single basic block.
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
FunctionPass * createARMConstantIslandPass()
createARMConstantIslandPass - returns an instance of the constpool island pass.
MachineBasicBlock * MBB
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:150
void initializeARMLoadStoreOptPass(PassRegistry &)
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:298
FunctionPass * createARMLoadStoreOptimizationPass(bool PreAlloc=false)
Returns an instance of the load / store optimization pass.
ImmutablePass class - This class is used to provide information that does not need to be run...
Definition: Pass.h:266
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, ARMAsmPrinter &AP)
Representation of each machine instruction.
Definition: MachineInstr.h:52
FunctionPass * createARMISelDag(ARMBaseTargetMachine &TM, CodeGenOpt::Level OptLevel)
createARMISelDag - This pass converts a legalized DAG into a ARM-specific DAG, ready for instruction ...
Primary interface to the complete machine description for the target machine.
print Print MemDeps of function
IRTranslator LLVM IR MI
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:40
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)