AArch64.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64_H
  14. #define LLVM_LIB_TARGET_AARCH64_AARCH64_H
  15. #include "MCTargetDesc/AArch64MCTargetDesc.h"
  16. #include "Utils/AArch64BaseInfo.h"
  17. #include "llvm/Pass.h"
  18. #include "llvm/PassRegistry.h"
  19. #include "llvm/Support/DataTypes.h"
  20. #include "llvm/Target/TargetMachine.h"
  21. namespace llvm {
  22. class AArch64RegisterBankInfo;
  23. class AArch64Subtarget;
  24. class AArch64TargetMachine;
  25. class FunctionPass;
  26. class InstructionSelector;
  27. FunctionPass *createAArch64DeadRegisterDefinitions();
  28. FunctionPass *createAArch64RedundantCopyEliminationPass();
  29. FunctionPass *createAArch64CondBrTuning();
  30. FunctionPass *createAArch64CompressJumpTablesPass();
  31. FunctionPass *createAArch64ConditionalCompares();
  32. FunctionPass *createAArch64AdvSIMDScalar();
  33. FunctionPass *createAArch64ISelDag(AArch64TargetMachine &TM,
  34. CodeGenOpt::Level OptLevel);
  35. FunctionPass *createAArch64StorePairSuppressPass();
  36. FunctionPass *createAArch64ExpandPseudoPass();
  37. FunctionPass *createAArch64SLSHardeningPass();
  38. FunctionPass *createAArch64IndirectThunks();
  39. FunctionPass *createAArch64SpeculationHardeningPass();
  40. FunctionPass *createAArch64KCFIPass();
  41. FunctionPass *createAArch64LoadStoreOptimizationPass();
  42. ModulePass *createAArch64LowerHomogeneousPrologEpilogPass();
  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. FunctionPass *createAArch64MIPeepholeOptPass();
  52. FunctionPass *createAArch64CleanupLocalDynamicTLSPass();
  53. FunctionPass *createAArch64CollectLOHPass();
  54. FunctionPass *createSMEABIPass();
  55. ModulePass *createSVEIntrinsicOptsPass();
  56. InstructionSelector *
  57. createAArch64InstructionSelector(const AArch64TargetMachine &,
  58. AArch64Subtarget &, AArch64RegisterBankInfo &);
  59. FunctionPass *createAArch64O0PreLegalizerCombiner();
  60. FunctionPass *createAArch64PreLegalizerCombiner();
  61. FunctionPass *createAArch64PostLegalizerCombiner(bool IsOptNone);
  62. FunctionPass *createAArch64PostLegalizerLowering();
  63. FunctionPass *createAArch64PostSelectOptimize();
  64. FunctionPass *createAArch64StackTaggingPass(bool IsOptNone);
  65. FunctionPass *createAArch64StackTaggingPreRAPass();
  66. void initializeAArch64A53Fix835769Pass(PassRegistry&);
  67. void initializeAArch64A57FPLoadBalancingPass(PassRegistry&);
  68. void initializeAArch64AdvSIMDScalarPass(PassRegistry&);
  69. void initializeAArch64BranchTargetsPass(PassRegistry&);
  70. void initializeAArch64CFIFixupPass(PassRegistry&);
  71. void initializeAArch64CollectLOHPass(PassRegistry &);
  72. void initializeAArch64CompressJumpTablesPass(PassRegistry&);
  73. void initializeAArch64CondBrTuningPass(PassRegistry &);
  74. void initializeAArch64ConditionOptimizerPass(PassRegistry&);
  75. void initializeAArch64ConditionalComparesPass(PassRegistry &);
  76. void initializeAArch64DAGToDAGISelPass(PassRegistry &);
  77. void initializeAArch64DeadRegisterDefinitionsPass(PassRegistry&);
  78. void initializeAArch64ExpandPseudoPass(PassRegistry &);
  79. void initializeAArch64KCFIPass(PassRegistry &);
  80. void initializeAArch64LoadStoreOptPass(PassRegistry&);
  81. void initializeAArch64LowerHomogeneousPrologEpilogPass(PassRegistry &);
  82. void initializeAArch64MIPeepholeOptPass(PassRegistry &);
  83. void initializeAArch64O0PreLegalizerCombinerPass(PassRegistry &);
  84. void initializeAArch64PostLegalizerCombinerPass(PassRegistry &);
  85. void initializeAArch64PostLegalizerLoweringPass(PassRegistry &);
  86. void initializeAArch64PostSelectOptimizePass(PassRegistry &);
  87. void initializeAArch64PreLegalizerCombinerPass(PassRegistry &);
  88. void initializeAArch64PromoteConstantPass(PassRegistry&);
  89. void initializeAArch64RedundantCopyEliminationPass(PassRegistry&);
  90. void initializeAArch64SIMDInstrOptPass(PassRegistry &);
  91. void initializeAArch64SLSHardeningPass(PassRegistry &);
  92. void initializeAArch64SpeculationHardeningPass(PassRegistry &);
  93. void initializeAArch64StackTaggingPass(PassRegistry &);
  94. void initializeAArch64StackTaggingPreRAPass(PassRegistry &);
  95. void initializeAArch64StorePairSuppressPass(PassRegistry&);
  96. void initializeFalkorHWPFFixPass(PassRegistry&);
  97. void initializeFalkorMarkStridedAccessesLegacyPass(PassRegistry&);
  98. void initializeLDTLSCleanupPass(PassRegistry&);
  99. void initializeSMEABIPass(PassRegistry &);
  100. void initializeSVEIntrinsicOptsPass(PassRegistry &);
  101. } // end namespace llvm
  102. #endif