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