AArch64MachineScheduler.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //===- AArch64MachineScheduler.h - Custom AArch64 MI scheduler --*- 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. // Custom AArch64 MI scheduler.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACHINESCHEDULER_H
  13. #define LLVM_LIB_TARGET_AARCH64_AARCH64MACHINESCHEDULER_H
  14. #include "llvm/CodeGen/MachineScheduler.h"
  15. namespace llvm {
  16. /// A MachineSchedStrategy implementation for AArch64 post RA scheduling.
  17. class AArch64PostRASchedStrategy : public PostGenericScheduler {
  18. public:
  19. AArch64PostRASchedStrategy(const MachineSchedContext *C) :
  20. PostGenericScheduler(C) {}
  21. protected:
  22. bool tryCandidate(SchedCandidate &Cand, SchedCandidate &TryCand) override;
  23. };
  24. } // end namespace llvm
  25. #endif