//===- HexagonMachineScheduler.cpp - MI Scheduler for Hexagon -------------===// // // 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 // //===----------------------------------------------------------------------===// // // MachineScheduler schedules machine instructions after phi elimination. It // preserves LiveIntervals so it can be invoked before register allocation. // //===----------------------------------------------------------------------===// #include "HexagonMachineScheduler.h" #include "HexagonInstrInfo.h" #include "HexagonSubtarget.h" #include "llvm/CodeGen/MachineScheduler.h" #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/CodeGen/VLIWMachineScheduler.h" usingnamespacellvm; #define DEBUG_TYPE … /// Return true if there is a dependence between SUd and SUu. bool HexagonVLIWResourceModel::hasDependence(const SUnit *SUd, const SUnit *SUu) { … } VLIWResourceModel *HexagonConvergingVLIWScheduler::createVLIWResourceModel( const TargetSubtargetInfo &STI, const TargetSchedModel *SchedModel) const { … } int HexagonConvergingVLIWScheduler::SchedulingCost(ReadyQueue &Q, SUnit *SU, SchedCandidate &Candidate, RegPressureDelta &Delta, bool verbose) { … }