xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AArch64MachineScheduler.h (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1*81ad6265SDimitry Andric //===- AArch64MachineScheduler.h - Custom AArch64 MI scheduler --*- C++ -*-===//
2*81ad6265SDimitry Andric //
3*81ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*81ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*81ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*81ad6265SDimitry Andric //
7*81ad6265SDimitry Andric //===----------------------------------------------------------------------===//
8*81ad6265SDimitry Andric //
9*81ad6265SDimitry Andric // Custom AArch64 MI scheduler.
10*81ad6265SDimitry Andric //
11*81ad6265SDimitry Andric //===----------------------------------------------------------------------===//
12*81ad6265SDimitry Andric 
13*81ad6265SDimitry Andric #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACHINESCHEDULER_H
14*81ad6265SDimitry Andric #define LLVM_LIB_TARGET_AARCH64_AARCH64MACHINESCHEDULER_H
15*81ad6265SDimitry Andric 
16*81ad6265SDimitry Andric #include "llvm/CodeGen/MachineScheduler.h"
17*81ad6265SDimitry Andric 
18*81ad6265SDimitry Andric namespace llvm {
19*81ad6265SDimitry Andric 
20*81ad6265SDimitry Andric /// A MachineSchedStrategy implementation for AArch64 post RA scheduling.
21*81ad6265SDimitry Andric class AArch64PostRASchedStrategy : public PostGenericScheduler {
22*81ad6265SDimitry Andric public:
AArch64PostRASchedStrategy(const MachineSchedContext * C)23*81ad6265SDimitry Andric   AArch64PostRASchedStrategy(const MachineSchedContext *C) :
24*81ad6265SDimitry Andric     PostGenericScheduler(C) {}
25*81ad6265SDimitry Andric 
26*81ad6265SDimitry Andric protected:
27*81ad6265SDimitry Andric   bool tryCandidate(SchedCandidate &Cand, SchedCandidate &TryCand) override;
28*81ad6265SDimitry Andric };
29*81ad6265SDimitry Andric 
30*81ad6265SDimitry Andric } // end namespace llvm
31*81ad6265SDimitry Andric 
32*81ad6265SDimitry Andric #endif
33*81ad6265SDimitry Andric 
34