| 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 | |
| 17 | #include "llvm/CodeGen/MachineFunctionAnalysisManager.h" |
| 18 | #include "llvm/IR/LegacyPassManager.h" |
| 19 | #include "llvm/Support/CodeGen.h" |
| 20 | #include <functional> |
| 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 MCInst; |
| 32 | class MachineInstr; |
| 33 | class PassRegistry; |
| 34 | |
| 35 | Pass *createMVETailPredicationPass(); |
| 36 | FunctionPass *createARMLowOverheadLoopsPass(); |
| 37 | FunctionPass *createARMBlockPlacementPass(); |
| 38 | Pass *createARMParallelDSPPass(); |
| 39 | FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM, |
| 40 | CodeGenOptLevel OptLevel); |
| 41 | FunctionPass *createA15SDOptimizerPass(); |
| 42 | FunctionPass *createARMLoadStoreOptLegacyPass(bool PreAlloc = false); |
| 43 | FunctionPass *createARMExpandPseudoPass(); |
| 44 | FunctionPass *createARMBranchTargetsPass(); |
| 45 | FunctionPass *createARMConstantIslandPass(); |
| 46 | FunctionPass *createMLxExpansionPass(); |
| 47 | FunctionPass *createThumb2ITBlockPass(); |
| 48 | FunctionPass *createMVEVPTBlockPass(); |
| 49 | FunctionPass *createMVETPAndVPTOptimisationsPass(); |
| 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); |
| 56 | Pass *createMVEGatherScatterLoweringPass(); |
| 57 | FunctionPass *createARMSLSHardeningPass(); |
| 58 | FunctionPass *createARMIndirectThunks(); |
| 59 | Pass *createMVELaneInterleavingPass(); |
| 60 | FunctionPass *createARMFixCortexA57AES1742098Pass(); |
| 61 | |
| 62 | void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, |
| 63 | ARMAsmPrinter &AP); |
| 64 | |
| 65 | void initializeARMAsmPrinterPass(PassRegistry &); |
| 66 | void initializeARMBlockPlacementPass(PassRegistry &); |
| 67 | void initializeARMBranchTargetsPass(PassRegistry &); |
| 68 | void initializeARMConstantIslandsPass(PassRegistry &); |
| 69 | void initializeARMDAGToDAGISelLegacyPass(PassRegistry &); |
| 70 | void initializeARMExpandPseudoPass(PassRegistry &); |
| 71 | void initializeARMFixCortexA57AES1742098Pass(PassRegistry &); |
| 72 | void initializeARMLoadStoreOptLegacyPass(PassRegistry &); |
| 73 | void initializeARMLowOverheadLoopsPass(PassRegistry &); |
| 74 | void initializeARMParallelDSPPass(PassRegistry &); |
| 75 | void initializeARMPreAllocLoadStoreOptLegacyPass(PassRegistry &); |
| 76 | void initializeARMSLSHardeningPass(PassRegistry &); |
| 77 | void initializeMVEGatherScatterLoweringPass(PassRegistry &); |
| 78 | void initializeMVELaneInterleavingPass(PassRegistry &); |
| 79 | void initializeMVETPAndVPTOptimisationsPass(PassRegistry &); |
| 80 | void initializeMVETailPredicationPass(PassRegistry &); |
| 81 | void initializeMVEVPTBlockPass(PassRegistry &); |
| 82 | void initializeThumb2ITBlockPass(PassRegistry &); |
| 83 | void initializeThumb2SizeReducePass(PassRegistry &); |
| 84 | |
| 85 | class ARMPreAllocLoadStoreOptPass |
| 86 | : public PassInfoMixin<ARMPreAllocLoadStoreOptPass> { |
| 87 | public: |
| 88 | PreservedAnalyses run(MachineFunction &MF, |
| 89 | MachineFunctionAnalysisManager &MFAM); |
| 90 | }; |
| 91 | |
| 92 | class ARMLoadStoreOptPass : public PassInfoMixin<ARMLoadStoreOptPass> { |
| 93 | public: |
| 94 | PreservedAnalyses run(MachineFunction &MF, |
| 95 | MachineFunctionAnalysisManager &MFAM); |
| 96 | }; |
| 97 | |
| 98 | } // end namespace llvm |
| 99 | |
| 100 | #endif // LLVM_LIB_TARGET_ARM_ARM_H |
| 101 |