LLVM 19.0.0git
HexagonMachineScheduler.h
Go to the documentation of this file.
1//===- HexagonMachineScheduler.h - Custom Hexagon 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 Hexagon MI scheduler.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONMACHINESCHEDULER_H
14#define LLVM_LIB_TARGET_HEXAGON_HEXAGONMACHINESCHEDULER_H
15
20
21namespace llvm {
22
23class SUnit;
24
26public:
28 bool hasDependence(const SUnit *SUd, const SUnit *SUu) override;
29};
30
32protected:
35 const TargetSchedModel *SchedModel) const override;
36 int SchedulingCost(ReadyQueue &Q, SUnit *SU, SchedCandidate &Candidate,
37 RegPressureDelta &Delta, bool verbose) override;
38};
39
40} // end namespace llvm
41
42#endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONMACHINESCHEDULER_H
const TargetSchedModel * SchedModel
VLIWResourceModel * createVLIWResourceModel(const TargetSubtargetInfo &STI, const TargetSchedModel *SchedModel) const override
int SchedulingCost(ReadyQueue &Q, SUnit *SU, SchedCandidate &Candidate, RegPressureDelta &Delta, bool verbose) override
Single point to compute overall scheduling cost.
bool hasDependence(const SUnit *SUd, const SUnit *SUu) override
Return true if there is a dependence between SUd and SUu.
Helpers for implementing custom MachineSchedStrategy classes.
Scheduling unit. This is a node in the scheduling DAG.
Definition: ScheduleDAG.h:242
Provide an instruction scheduling machine model to CodeGen passes.
TargetSubtargetInfo - Generic base class for all target subtargets.
VLIWResourceModel(const TargetSubtargetInfo &STI, const TargetSchedModel *SM)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Store the state used by ConvergingVLIWScheduler heuristics, required for the lifetime of one invocati...
Store the effects of a change in pressure on things that MI scheduler cares about.