| 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/IR/LegacyPassManager.h" |
| 18 | #include "llvm/Support/CodeGen.h" |
| 19 | #include <functional> |
| 20 | |
| 21 | namespace llvm { |
| 22 | |
| 23 | class ARMAsmPrinter; |
| 24 | class ARMBaseTargetMachine; |
| 25 | class ARMRegisterBankInfo; |
| 26 | class ARMSubtarget; |
| 27 | class Function; |
| 28 | class FunctionPass; |
| 29 | class InstructionSelector; |
| 30 | class MCInst; |
| 31 | class MachineInstr; |
| 32 | class PassRegistry; |
| 33 | |
| 34 | Pass *createMVETailPredicationPass(); |
| 35 | FunctionPass *createARMLowOverheadLoopsPass(); |
| 36 | FunctionPass *createARMBlockPlacementPass(); |
| 37 | Pass *createARMParallelDSPPass(); |
| 38 | FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM, |
| 39 | CodeGenOptLevel OptLevel); |
| 40 | FunctionPass *createA15SDOptimizerPass(); |
| 41 | FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false); |
| 42 | FunctionPass *createARMExpandPseudoPass(); |
| 43 | FunctionPass *createARMBranchTargetsPass(); |
| 44 | FunctionPass *createARMConstantIslandPass(); |
| 45 | FunctionPass *createMLxExpansionPass(); |
| 46 | FunctionPass *createThumb2ITBlockPass(); |
| 47 | FunctionPass *createMVEVPTBlockPass(); |
| 48 | FunctionPass *createMVETPAndVPTOptimisationsPass(); |
| 49 | FunctionPass *createARMOptimizeBarriersPass(); |
| 50 | FunctionPass *createThumb2SizeReductionPass( |
| 51 | std::function<bool(const Function &)> Ftor = nullptr); |
| 52 | InstructionSelector * |
| 53 | createARMInstructionSelector(const ARMBaseTargetMachine &TM, const ARMSubtarget &STI, |
| 54 | const ARMRegisterBankInfo &RBI); |
| 55 | Pass *createMVEGatherScatterLoweringPass(); |
| 56 | FunctionPass *createARMSLSHardeningPass(); |
| 57 | FunctionPass *createARMIndirectThunks(); |
| 58 | Pass *createMVELaneInterleavingPass(); |
| 59 | FunctionPass *createARMFixCortexA57AES1742098Pass(); |
| 60 | |
| 61 | void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, |
| 62 | ARMAsmPrinter &AP); |
| 63 | |
| 64 | void initializeARMAsmPrinterPass(PassRegistry &); |
| 65 | void initializeARMBlockPlacementPass(PassRegistry &); |
| 66 | void initializeARMBranchTargetsPass(PassRegistry &); |
| 67 | void initializeARMConstantIslandsPass(PassRegistry &); |
| 68 | void initializeARMDAGToDAGISelLegacyPass(PassRegistry &); |
| 69 | void initializeARMExpandPseudoPass(PassRegistry &); |
| 70 | void initializeARMFixCortexA57AES1742098Pass(PassRegistry &); |
| 71 | void initializeARMLoadStoreOptPass(PassRegistry &); |
| 72 | void initializeARMLowOverheadLoopsPass(PassRegistry &); |
| 73 | void initializeARMParallelDSPPass(PassRegistry &); |
| 74 | void initializeARMPreAllocLoadStoreOptPass(PassRegistry &); |
| 75 | void initializeARMSLSHardeningPass(PassRegistry &); |
| 76 | void initializeMVEGatherScatterLoweringPass(PassRegistry &); |
| 77 | void initializeMVELaneInterleavingPass(PassRegistry &); |
| 78 | void initializeMVETPAndVPTOptimisationsPass(PassRegistry &); |
| 79 | void initializeMVETailPredicationPass(PassRegistry &); |
| 80 | void initializeMVEVPTBlockPass(PassRegistry &); |
| 81 | void initializeThumb2ITBlockPass(PassRegistry &); |
| 82 | void initializeThumb2SizeReducePass(PassRegistry &); |
| 83 | |
| 84 | } // end namespace llvm |
| 85 | |
| 86 | #endif // LLVM_LIB_TARGET_ARM_ARM_H |
| 87 |