LLVM  10.0.0svn
ARM.h
Go to the documentation of this file.
1 //===-- ARM.h - Top-level interface for ARM representation ------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the entry points for global functions defined in the LLVM
10 // ARM back-end.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_ARM_ARM_H
15 #define LLVM_LIB_TARGET_ARM_ARM_H
16 
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 
39 FunctionPass *createARMLowOverheadLoopsPass();
41 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
42  CodeGenOpt::Level OptLevel);
43 FunctionPass *createA15SDOptimizerPass();
44 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
45 FunctionPass *createARMExpandPseudoPass();
46 FunctionPass *createARMCodeGenPreparePass();
47 FunctionPass *createARMConstantIslandPass();
48 FunctionPass *createMLxExpansionPass();
49 FunctionPass *createThumb2ITBlockPass();
50 FunctionPass *createMVEVPTBlockPass();
51 FunctionPass *createARMOptimizeBarriersPass();
52 FunctionPass *createThumb2SizeReductionPass(
53  std::function<bool(const Function &)> Ftor = nullptr);
54 InstructionSelector *
55 createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI,
56  const ARMRegisterBankInfo &RBI);
57 
58 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
59  ARMAsmPrinter &AP);
60 
61 void initializeARMParallelDSPPass(PassRegistry &);
62 void initializeARMLoadStoreOptPass(PassRegistry &);
63 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
64 void initializeARMCodeGenPreparePass(PassRegistry &);
65 void initializeARMConstantIslandsPass(PassRegistry &);
66 void initializeARMExpandPseudoPass(PassRegistry &);
67 void initializeThumb2SizeReducePass(PassRegistry &);
68 void initializeThumb2ITBlockPass(PassRegistry &);
69 void initializeMVEVPTBlockPass(PassRegistry &);
70 void initializeARMLowOverheadLoopsPass(PassRegistry &);
71 void initializeMVETailPredicationPass(PassRegistry &);
72 
73 } // end namespace llvm
74 
75 #endif // LLVM_LIB_TARGET_ARM_ARM_H
FunctionPass * createA15SDOptimizerPass()
FunctionPass * createMLxExpansionPass()
This class represents lattice values for constants.
Definition: AllocatorList.h:23
FunctionPass * createARMExpandPseudoPass()
createARMExpandPseudoPass - returns an instance of the pseudo instruction expansion pass...
void initializeARMPreAllocLoadStoreOptPass(PassRegistry &)
Pass * createMVETailPredicationPass()
FunctionPass * createARMOptimizeBarriersPass()
createARMOptimizeBarriersPass - Returns an instance of the remove double barriers pass...
InstructionSelector * createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI, const ARMRegisterBankInfo &RBI)
void initializeARMCodeGenPreparePass(PassRegistry &)
FunctionPass * createARMConstantIslandPass()
createARMConstantIslandPass - returns an instance of the constpool island pass.
void initializeMVETailPredicationPass(PassRegistry &)
void initializeThumb2ITBlockPass(PassRegistry &)
FunctionPass * createMVEVPTBlockPass()
createMVEVPTBlock - Returns an instance of the MVE VPT block insertion pass.
void initializeARMExpandPseudoPass(PassRegistry &)
void initializeARMLoadStoreOptPass(PassRegistry &)
Pass * createARMParallelDSPPass()
void initializeARMParallelDSPPass(PassRegistry &)
FunctionPass * createARMLoadStoreOptimizationPass(bool PreAlloc=false)
Returns an instance of the load / store optimization pass.
print lazy value Lazy Value Info Printer Pass
void initializeThumb2SizeReducePass(PassRegistry &)
void initializeARMLowOverheadLoopsPass(PassRegistry &)
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 ...
FunctionPass * createARMCodeGenPreparePass()
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.
FunctionPass * createARMLowOverheadLoopsPass()
void initializeMVEVPTBlockPass(PassRegistry &)