xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AArch64.h (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
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 
30 FunctionPass *createAArch64DeadRegisterDefinitions();
31 FunctionPass *createAArch64RedundantCopyEliminationPass();
32 FunctionPass *createAArch64CondBrTuning();
33 FunctionPass *createAArch64CompressJumpTablesPass();
34 FunctionPass *createAArch64ConditionalCompares();
35 FunctionPass *createAArch64AdvSIMDScalar();
36 FunctionPass *createAArch64ISelDag(AArch64TargetMachine &TM,
37                                  CodeGenOpt::Level OptLevel);
38 FunctionPass *createAArch64StorePairSuppressPass();
39 FunctionPass *createAArch64ExpandPseudoPass();
40 FunctionPass *createAArch64SLSHardeningPass();
41 FunctionPass *createAArch64IndirectThunks();
42 FunctionPass *createAArch64SpeculationHardeningPass();
43 FunctionPass *createAArch64LoadStoreOptimizationPass();
44 ModulePass *createAArch64LowerHomogeneousPrologEpilogPass();
45 FunctionPass *createAArch64SIMDInstrOptPass();
46 ModulePass *createAArch64PromoteConstantPass();
47 FunctionPass *createAArch64ConditionOptimizerPass();
48 FunctionPass *createAArch64A57FPLoadBalancing();
49 FunctionPass *createAArch64A53Fix835769();
50 FunctionPass *createFalkorHWPFFixPass();
51 FunctionPass *createFalkorMarkStridedAccessesPass();
52 FunctionPass *createAArch64BranchTargetsPass();
53 FunctionPass *createAArch64MIPeepholeOptPass();
54 
55 FunctionPass *createAArch64CleanupLocalDynamicTLSPass();
56 
57 FunctionPass *createAArch64CollectLOHPass();
58 ModulePass *createSVEIntrinsicOptsPass();
59 InstructionSelector *
60 createAArch64InstructionSelector(const AArch64TargetMachine &,
61                                  AArch64Subtarget &, AArch64RegisterBankInfo &);
62 FunctionPass *createAArch64O0PreLegalizerCombiner();
63 FunctionPass *createAArch64PreLegalizerCombiner();
64 FunctionPass *createAArch64PostLegalizerCombiner(bool IsOptNone);
65 FunctionPass *createAArch64PostLegalizerLowering();
66 FunctionPass *createAArch64PostSelectOptimize();
67 FunctionPass *createAArch64StackTaggingPass(bool IsOptNone);
68 FunctionPass *createAArch64StackTaggingPreRAPass();
69 
70 void initializeAArch64A53Fix835769Pass(PassRegistry&);
71 void initializeAArch64A57FPLoadBalancingPass(PassRegistry&);
72 void initializeAArch64AdvSIMDScalarPass(PassRegistry&);
73 void initializeAArch64BranchTargetsPass(PassRegistry&);
74 void initializeAArch64CollectLOHPass(PassRegistry&);
75 void initializeAArch64CondBrTuningPass(PassRegistry &);
76 void initializeAArch64CompressJumpTablesPass(PassRegistry&);
77 void initializeAArch64ConditionalComparesPass(PassRegistry&);
78 void initializeAArch64ConditionOptimizerPass(PassRegistry&);
79 void initializeAArch64DeadRegisterDefinitionsPass(PassRegistry&);
80 void initializeAArch64ExpandPseudoPass(PassRegistry&);
81 void initializeAArch64SLSHardeningPass(PassRegistry&);
82 void initializeAArch64SpeculationHardeningPass(PassRegistry&);
83 void initializeAArch64LoadStoreOptPass(PassRegistry&);
84 void initializeAArch64LowerHomogeneousPrologEpilogPass(PassRegistry &);
85 void initializeAArch64MIPeepholeOptPass(PassRegistry &);
86 void initializeAArch64SIMDInstrOptPass(PassRegistry&);
87 void initializeAArch64O0PreLegalizerCombinerPass(PassRegistry &);
88 void initializeAArch64PreLegalizerCombinerPass(PassRegistry&);
89 void initializeAArch64PostLegalizerCombinerPass(PassRegistry &);
90 void initializeAArch64PostLegalizerLoweringPass(PassRegistry &);
91 void initializeAArch64PostSelectOptimizePass(PassRegistry &);
92 void initializeAArch64PromoteConstantPass(PassRegistry&);
93 void initializeAArch64RedundantCopyEliminationPass(PassRegistry&);
94 void initializeAArch64StorePairSuppressPass(PassRegistry&);
95 void initializeFalkorHWPFFixPass(PassRegistry&);
96 void initializeFalkorMarkStridedAccessesLegacyPass(PassRegistry&);
97 void initializeLDTLSCleanupPass(PassRegistry&);
98 void initializeSVEIntrinsicOptsPass(PassRegistry&);
99 void initializeAArch64StackTaggingPass(PassRegistry&);
100 void initializeAArch64StackTaggingPreRAPass(PassRegistry&);
101 } // end namespace llvm
102 
103 #endif
104