blob: 999937c8d7e78102402550c44042600118c3509a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// SPDX-License-Identifier: GPL-3.0-or-later
// The private header has no stable include-root-relative guard name.
// NOLINTNEXTLINE(llvm-header-guard)
#ifndef RCC_LIB_CODEGEN_MACHINESCHEDULERINTERNAL_H
#define RCC_LIB_CODEGEN_MACHINESCHEDULERINTERNAL_H
#include "rcc/CodeGen/LiveVariables.h"
#include "rcc/CodeGen/MachineAnalyses.h"
#include "rcc/CodeGen/MachineScheduler.h"
#include "rcc/CodeGen/ScheduleDAG.h"
#include "rcc/Support/Error.h"
#include <vector>
namespace rcc {
class MachineBasicBlock;
class MachineFunction;
class TargetDescription;
class TargetSchedulingModel;
struct MachineSchedulingRunResult final {
bool Changed = false;
std::vector<MachineBasicBlock *> ChangedBlocks;
};
[[nodiscard]] Expected<MachineSchedulingRunResult>
runMachineScheduler(MachineFunction &Function, const TargetDescription &Target,
const TargetSchedulingModel &Model, ScheduleDAGMode Mode,
const LiveVariablesAnalysis::Result &Liveness,
const MachineBlockFrequencyAnalysis::Result &Frequencies,
MachineSchedulerOptions Options,
MachineFunctionAnalysisManager &Analyses);
} // namespace rcc
#endif // RCC_LIB_CODEGEN_MACHINESCHEDULERINTERNAL_H
|