LLVM  16.0.0git
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 class Function;
29 class FunctionPass;
30 class InstructionSelector;
31 class MachineInstr;
32 class MCInst;
33 class PassRegistry;
34 
36 FunctionPass *createARMLowOverheadLoopsPass();
37 FunctionPass *createARMBlockPlacementPass();
39 FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
40  CodeGenOpt::Level OptLevel);
41 FunctionPass *createA15SDOptimizerPass();
42 FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
43 FunctionPass *createARMExpandPseudoPass();
44 FunctionPass *createARMBranchTargetsPass();
45 FunctionPass *createARMConstantIslandPass();
46 FunctionPass *createMLxExpansionPass();
47 FunctionPass *createThumb2ITBlockPass();
48 FunctionPass *createMVEVPTBlockPass();
50 FunctionPass *createARMOptimizeBarriersPass();
51 FunctionPass *createThumb2SizeReductionPass(
52  std::function<bool(const Function &)> Ftor = nullptr);
53 InstructionSelector *
54 createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI,
55  const ARMRegisterBankInfo &RBI);
57 FunctionPass *createARMSLSHardeningPass();
58 FunctionPass *createARMIndirectThunks();
61 
62 void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
63  ARMAsmPrinter &AP);
64 
65 void initializeARMParallelDSPPass(PassRegistry &);
66 void initializeARMLoadStoreOptPass(PassRegistry &);
67 void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
68 void initializeARMBranchTargetsPass(PassRegistry &);
69 void initializeARMConstantIslandsPass(PassRegistry &);
70 void initializeARMExpandPseudoPass(PassRegistry &);
71 void initializeThumb2SizeReducePass(PassRegistry &);
72 void initializeThumb2ITBlockPass(PassRegistry &);
73 void initializeMVEVPTBlockPass(PassRegistry &);
74 void initializeMVETPAndVPTOptimisationsPass(PassRegistry &);
75 void initializeARMLowOverheadLoopsPass(PassRegistry &);
76 void initializeARMBlockPlacementPass(PassRegistry &);
77 void initializeMVETailPredicationPass(PassRegistry &);
78 void initializeMVEGatherScatterLoweringPass(PassRegistry &);
79 void initializeARMSLSHardeningPass(PassRegistry &);
80 void initializeMVELaneInterleavingPass(PassRegistry &);
81 void initializeARMFixCortexA57AES1742098Pass(PassRegistry &);
82 
83 } // end namespace llvm
84 
85 #endif // LLVM_LIB_TARGET_ARM_ARM_H
llvm::initializeARMBlockPlacementPass
void initializeARMBlockPlacementPass(PassRegistry &)
llvm::initializeARMExpandPseudoPass
void initializeARMExpandPseudoPass(PassRegistry &)
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:108
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Pass
print lazy value Lazy Value Info Printer Pass
Definition: LazyValueInfo.cpp:1998
llvm::createARMInstructionSelector
InstructionSelector * createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI, const ARMRegisterBankInfo &RBI)
Definition: ARMInstructionSelector.cpp:160
llvm::initializeThumb2SizeReducePass
void initializeThumb2SizeReducePass(PassRegistry &)
llvm::initializeARMBranchTargetsPass
void initializeARMBranchTargetsPass(PassRegistry &)
llvm::createARMLowOverheadLoopsPass
FunctionPass * createARMLowOverheadLoopsPass()
Definition: ARMLowOverheadLoops.cpp:1885
llvm::createARMConstantIslandPass
FunctionPass * createARMConstantIslandPass()
createARMConstantIslandPass - returns an instance of the constpool island pass.
Definition: ARMConstantIslandPass.cpp:2550
llvm::initializeARMLowOverheadLoopsPass
void initializeARMLowOverheadLoopsPass(PassRegistry &)
llvm::createMLxExpansionPass
FunctionPass * createMLxExpansionPass()
Definition: MLxExpansionPass.cpp:390
llvm::createMVEVPTBlockPass
FunctionPass * createMVEVPTBlockPass()
createMVEVPTBlock - Returns an instance of the MVE VPT block insertion pass.
Definition: MVEVPTBlockPass.cpp:336
LegacyPassManager.h
llvm::LowerARMMachineInstrToMCInst
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, ARMAsmPrinter &AP)
Definition: ARMMCInstLower.cpp:123
llvm::initializeARMSLSHardeningPass
void initializeARMSLSHardeningPass(PassRegistry &)
llvm::initializeARMConstantIslandsPass
void initializeARMConstantIslandsPass(PassRegistry &)
llvm::createA15SDOptimizerPass
FunctionPass * createA15SDOptimizerPass()
Definition: A15SDOptimizer.cpp:681
llvm::initializeARMParallelDSPPass
void initializeARMParallelDSPPass(PassRegistry &)
llvm::initializeARMPreAllocLoadStoreOptPass
void initializeARMPreAllocLoadStoreOptPass(PassRegistry &)
llvm::createARMBlockPlacementPass
FunctionPass * createARMBlockPlacementPass()
Definition: ARMBlockPlacement.cpp:57
llvm::createARMBranchTargetsPass
FunctionPass * createARMBranchTargetsPass()
llvm::createARMFixCortexA57AES1742098Pass
FunctionPass * createARMFixCortexA57AES1742098Pass()
Definition: ARMFixCortexA57AES1742098Pass.cpp:430
llvm::createMVETPAndVPTOptimisationsPass
FunctionPass * createMVETPAndVPTOptimisationsPass()
createMVETPAndVPTOptimisationsPass
Definition: MVETPAndVPTOptimisationsPass.cpp:1088
llvm::createARMExpandPseudoPass
FunctionPass * createARMExpandPseudoPass()
createARMExpandPseudoPass - returns an instance of the pseudo instruction expansion pass.
Definition: ARMExpandPseudoInsts.cpp:3171
llvm::createMVEGatherScatterLoweringPass
Pass * createMVEGatherScatterLoweringPass()
llvm::initializeARMLoadStoreOptPass
void initializeARMLoadStoreOptPass(PassRegistry &)
function
print Print MemDeps of function
Definition: MemDepPrinter.cpp:82
llvm::initializeMVETailPredicationPass
void initializeMVETailPredicationPass(PassRegistry &)
llvm::initializeARMFixCortexA57AES1742098Pass
void initializeARMFixCortexA57AES1742098Pass(PassRegistry &)
llvm::createARMSLSHardeningPass
FunctionPass * createARMSLSHardeningPass()
Definition: ARMSLSHardening.cpp:361
llvm::createMVELaneInterleavingPass
Pass * createMVELaneInterleavingPass()
llvm::initializeMVEGatherScatterLoweringPass
void initializeMVEGatherScatterLoweringPass(PassRegistry &)
llvm::createARMParallelDSPPass
Pass * createARMParallelDSPPass()
Definition: ARMParallelDSP.cpp:808
llvm::createThumb2SizeReductionPass
FunctionPass * createThumb2SizeReductionPass(std::function< bool(const Function &)> Ftor=nullptr)
createThumb2SizeReductionPass - Returns an instance of the Thumb2 size reduction pass.
Definition: Thumb2SizeReduction.cpp:1165
llvm::CodeGenOpt::Level
Level
Definition: CodeGen.h:52
llvm::createARMISelDag
FunctionPass * createARMISelDag(ARMBaseTargetMachine &TM, CodeGenOpt::Level OptLevel)
createARMISelDag - This pass converts a legalized DAG into a ARM-specific DAG, ready for instruction ...
Definition: ARMISelDAGToDAG.cpp:5897
llvm::createARMIndirectThunks
FunctionPass * createARMIndirectThunks()
Definition: ARMSLSHardening.cpp:407
llvm::createThumb2ITBlockPass
FunctionPass * createThumb2ITBlockPass()
createThumb2ITBlockPass - Returns an instance of the Thumb2 IT blocks insertion pass.
Definition: Thumb2ITBlockPass.cpp:310
llvm::initializeMVELaneInterleavingPass
void initializeMVELaneInterleavingPass(PassRegistry &)
llvm::createMVETailPredicationPass
Pass * createMVETailPredicationPass()
Definition: MVETailPredication.cpp:426
CodeGen.h
llvm::initializeMVEVPTBlockPass
void initializeMVEVPTBlockPass(PassRegistry &)
TM
const char LLVMTargetMachineRef TM
Definition: PassBuilderBindings.cpp:47
llvm::createARMOptimizeBarriersPass
FunctionPass * createARMOptimizeBarriersPass()
createARMOptimizeBarriersPass - Returns an instance of the remove double barriers pass.
Definition: ARMOptimizeBarriersPass.cpp:104
llvm::initializeMVETPAndVPTOptimisationsPass
void initializeMVETPAndVPTOptimisationsPass(PassRegistry &)
llvm::createARMLoadStoreOptimizationPass
FunctionPass * createARMLoadStoreOptimizationPass(bool PreAlloc=false)
Returns an instance of the load / store optimization pass.
Definition: ARMLoadStoreOptimizer.cpp:3019
llvm::initializeThumb2ITBlockPass
void initializeThumb2ITBlockPass(PassRegistry &)
llvm::codeview::PublicSymFlags::Function
@ Function