1 //==-- AArch64.h - Top-level interface for AArch64 --------------*- C++ -*-==//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains the entry points for global functions defined in the LLVM
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64_H
15 #define LLVM_LIB_TARGET_AARCH64_AARCH64_H
17 #include "MCTargetDesc/AArch64MCTargetDesc.h"
18 #include "Utils/AArch64BaseInfo.h"
19 #include "llvm/Pass.h"
20 #include "llvm/PassRegistry.h"
21 #include "llvm/Support/DataTypes.h"
22 #include "llvm/Target/TargetMachine.h"
26 class AArch64RegisterBankInfo
;
27 class AArch64Subtarget
;
28 class AArch64TargetMachine
;
30 class InstructionSelector
;
32 FunctionPass
*createAArch64DeadRegisterDefinitions();
33 FunctionPass
*createAArch64RedundantCopyEliminationPass();
34 FunctionPass
*createAArch64CondBrTuning();
35 FunctionPass
*createAArch64CompressJumpTablesPass();
36 FunctionPass
*createAArch64ConditionalCompares();
37 FunctionPass
*createAArch64AdvSIMDScalar();
38 FunctionPass
*createAArch64ISelDag(AArch64TargetMachine
&TM
,
39 CodeGenOptLevel OptLevel
);
40 FunctionPass
*createAArch64StorePairSuppressPass();
41 FunctionPass
*createAArch64ExpandPseudoPass();
42 FunctionPass
*createAArch64SLSHardeningPass();
43 FunctionPass
*createAArch64IndirectThunks();
44 FunctionPass
*createAArch64SpeculationHardeningPass();
45 FunctionPass
*createAArch64LoadStoreOptimizationPass();
46 ModulePass
*createAArch64LowerHomogeneousPrologEpilogPass();
47 FunctionPass
*createAArch64SIMDInstrOptPass();
48 ModulePass
*createAArch64PromoteConstantPass();
49 FunctionPass
*createAArch64ConditionOptimizerPass();
50 FunctionPass
*createAArch64A57FPLoadBalancing();
51 FunctionPass
*createAArch64A53Fix835769();
52 FunctionPass
*createFalkorHWPFFixPass();
53 FunctionPass
*createFalkorMarkStridedAccessesPass();
54 FunctionPass
*createAArch64PointerAuthPass();
55 FunctionPass
*createAArch64BranchTargetsPass();
56 FunctionPass
*createAArch64MIPeepholeOptPass();
57 FunctionPass
*createAArch64PostCoalescerPass();
59 FunctionPass
*createAArch64CleanupLocalDynamicTLSPass();
61 FunctionPass
*createAArch64CollectLOHPass();
62 FunctionPass
*createSMEABIPass();
63 ModulePass
*createSVEIntrinsicOptsPass();
65 createAArch64InstructionSelector(const AArch64TargetMachine
&,
66 AArch64Subtarget
&, AArch64RegisterBankInfo
&);
67 FunctionPass
*createAArch64O0PreLegalizerCombiner();
68 FunctionPass
*createAArch64PreLegalizerCombiner();
69 FunctionPass
*createAArch64PostLegalizerCombiner(bool IsOptNone
);
70 FunctionPass
*createAArch64PostLegalizerLowering();
71 FunctionPass
*createAArch64PostSelectOptimize();
72 FunctionPass
*createAArch64StackTaggingPass(bool IsOptNone
);
73 FunctionPass
*createAArch64StackTaggingPreRAPass();
74 ModulePass
*createAArch64GlobalsTaggingPass();
75 ModulePass
*createAArch64Arm64ECCallLoweringPass();
77 void initializeAArch64A53Fix835769Pass(PassRegistry
&);
78 void initializeAArch64A57FPLoadBalancingPass(PassRegistry
&);
79 void initializeAArch64AdvSIMDScalarPass(PassRegistry
&);
80 void initializeAArch64PointerAuthPass(PassRegistry
&);
81 void initializeAArch64BranchTargetsPass(PassRegistry
&);
82 void initializeAArch64CFIFixupPass(PassRegistry
&);
83 void initializeAArch64CollectLOHPass(PassRegistry
&);
84 void initializeAArch64CompressJumpTablesPass(PassRegistry
&);
85 void initializeAArch64CondBrTuningPass(PassRegistry
&);
86 void initializeAArch64ConditionOptimizerPass(PassRegistry
&);
87 void initializeAArch64ConditionalComparesPass(PassRegistry
&);
88 void initializeAArch64DAGToDAGISelPass(PassRegistry
&);
89 void initializeAArch64DeadRegisterDefinitionsPass(PassRegistry
&);
90 void initializeAArch64ExpandPseudoPass(PassRegistry
&);
91 void initializeAArch64GlobalsTaggingPass(PassRegistry
&);
92 void initializeAArch64LoadStoreOptPass(PassRegistry
&);
93 void initializeAArch64LoopIdiomTransformLegacyPassPass(PassRegistry
&);
94 void initializeAArch64LowerHomogeneousPrologEpilogPass(PassRegistry
&);
95 void initializeAArch64MIPeepholeOptPass(PassRegistry
&);
96 void initializeAArch64O0PreLegalizerCombinerPass(PassRegistry
&);
97 void initializeAArch64PostCoalescerPass(PassRegistry
&);
98 void initializeAArch64PostLegalizerCombinerPass(PassRegistry
&);
99 void initializeAArch64PostLegalizerLoweringPass(PassRegistry
&);
100 void initializeAArch64PostSelectOptimizePass(PassRegistry
&);
101 void initializeAArch64PreLegalizerCombinerPass(PassRegistry
&);
102 void initializeAArch64PromoteConstantPass(PassRegistry
&);
103 void initializeAArch64RedundantCopyEliminationPass(PassRegistry
&);
104 void initializeAArch64SIMDInstrOptPass(PassRegistry
&);
105 void initializeAArch64SLSHardeningPass(PassRegistry
&);
106 void initializeAArch64SpeculationHardeningPass(PassRegistry
&);
107 void initializeAArch64StackTaggingPass(PassRegistry
&);
108 void initializeAArch64StackTaggingPreRAPass(PassRegistry
&);
109 void initializeAArch64StorePairSuppressPass(PassRegistry
&);
110 void initializeFalkorHWPFFixPass(PassRegistry
&);
111 void initializeFalkorMarkStridedAccessesLegacyPass(PassRegistry
&);
112 void initializeLDTLSCleanupPass(PassRegistry
&);
113 void initializeSMEABIPass(PassRegistry
&);
114 void initializeSVEIntrinsicOptsPass(PassRegistry
&);
115 void initializeAArch64Arm64ECCallLoweringPass(PassRegistry
&);
116 } // end namespace llvm