1 //==-- AArch64.h - Top-level interface for AArch64 --------------*- 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 // AArch64 back-end. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64_H 15 #define LLVM_LIB_TARGET_AARCH64_AARCH64_H 16 17 #include "MCTargetDesc/AArch64MCTargetDesc.h" 18 #include "Utils/AArch64BaseInfo.h" 19 #include "llvm/Support/DataTypes.h" 20 #include "llvm/Target/TargetMachine.h" 21 22 namespace llvm { 23 24 class AArch64RegisterBankInfo; 25 class AArch64Subtarget; 26 class AArch64TargetMachine; 27 class FunctionPass; 28 class InstructionSelector; 29 class MachineFunctionPass; 30 31 FunctionPass *createAArch64DeadRegisterDefinitions(); 32 FunctionPass *createAArch64RedundantCopyEliminationPass(); 33 FunctionPass *createAArch64CondBrTuning(); 34 FunctionPass *createAArch64CompressJumpTablesPass(); 35 FunctionPass *createAArch64ConditionalCompares(); 36 FunctionPass *createAArch64AdvSIMDScalar(); 37 FunctionPass *createAArch64ISelDag(AArch64TargetMachine &TM, 38 CodeGenOpt::Level OptLevel); 39 FunctionPass *createAArch64StorePairSuppressPass(); 40 FunctionPass *createAArch64ExpandPseudoPass(); 41 FunctionPass *createAArch64SpeculationHardeningPass(); 42 FunctionPass *createAArch64LoadStoreOptimizationPass(); 43 FunctionPass *createAArch64SIMDInstrOptPass(); 44 ModulePass *createAArch64PromoteConstantPass(); 45 FunctionPass *createAArch64ConditionOptimizerPass(); 46 FunctionPass *createAArch64A57FPLoadBalancing(); 47 FunctionPass *createAArch64A53Fix835769(); 48 FunctionPass *createFalkorHWPFFixPass(); 49 FunctionPass *createFalkorMarkStridedAccessesPass(); 50 FunctionPass *createAArch64BranchTargetsPass(); 51 52 FunctionPass *createAArch64CleanupLocalDynamicTLSPass(); 53 54 FunctionPass *createAArch64CollectLOHPass(); 55 InstructionSelector * 56 createAArch64InstructionSelector(const AArch64TargetMachine &, 57 AArch64Subtarget &, AArch64RegisterBankInfo &); 58 FunctionPass *createAArch64PreLegalizeCombiner(bool IsOptNone); 59 FunctionPass *createAArch64StackTaggingPass(bool MergeInit); 60 FunctionPass *createAArch64StackTaggingPreRAPass(); 61 62 void initializeAArch64A53Fix835769Pass(PassRegistry&); 63 void initializeAArch64A57FPLoadBalancingPass(PassRegistry&); 64 void initializeAArch64AdvSIMDScalarPass(PassRegistry&); 65 void initializeAArch64BranchTargetsPass(PassRegistry&); 66 void initializeAArch64CollectLOHPass(PassRegistry&); 67 void initializeAArch64CondBrTuningPass(PassRegistry &); 68 void initializeAArch64CompressJumpTablesPass(PassRegistry&); 69 void initializeAArch64ConditionalComparesPass(PassRegistry&); 70 void initializeAArch64ConditionOptimizerPass(PassRegistry&); 71 void initializeAArch64DeadRegisterDefinitionsPass(PassRegistry&); 72 void initializeAArch64ExpandPseudoPass(PassRegistry&); 73 void initializeAArch64SpeculationHardeningPass(PassRegistry&); 74 void initializeAArch64LoadStoreOptPass(PassRegistry&); 75 void initializeAArch64SIMDInstrOptPass(PassRegistry&); 76 void initializeAArch64PreLegalizerCombinerPass(PassRegistry&); 77 void initializeAArch64PromoteConstantPass(PassRegistry&); 78 void initializeAArch64RedundantCopyEliminationPass(PassRegistry&); 79 void initializeAArch64StorePairSuppressPass(PassRegistry&); 80 void initializeFalkorHWPFFixPass(PassRegistry&); 81 void initializeFalkorMarkStridedAccessesLegacyPass(PassRegistry&); 82 void initializeLDTLSCleanupPass(PassRegistry&); 83 void initializeAArch64StackTaggingPass(PassRegistry&); 84 void initializeAArch64StackTaggingPreRAPass(PassRegistry&); 85 } // end namespace llvm 86 87 #endif 88