//===--------------------- Scheduler.h ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file /// /// A scheduler for Processor Resource Units and Processor Resource Groups. /// //===----------------------------------------------------------------------===// #ifndef LLVM_MCA_HARDWAREUNITS_SCHEDULER_H #define LLVM_MCA_HARDWAREUNITS_SCHEDULER_H #include "llvm/ADT/SmallVector.h" #include "llvm/MC/MCSchedule.h" #include "llvm/MCA/HardwareUnits/HardwareUnit.h" #include "llvm/MCA/HardwareUnits/LSUnit.h" #include "llvm/MCA/HardwareUnits/ResourceManager.h" #include "llvm/MCA/Support.h" namespace llvm { namespace mca { class SchedulerStrategy { … }; /// Default instruction selection strategy used by class Scheduler. class DefaultSchedulerStrategy : public SchedulerStrategy { … }; /// Class Scheduler is responsible for issuing instructions to pipeline /// resources. /// /// Internally, it delegates to a ResourceManager the management of processor /// resources. This class is also responsible for tracking the progress of /// instructions from the dispatch stage, until the write-back stage. /// class Scheduler : public HardwareUnit { … }; } // namespace mca } // namespace llvm #endif // LLVM_MCA_HARDWAREUNITS_SCHEDULER_H