blob: d1dd72859a380ebc7a81d1d4e043cb6fab852764 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// 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
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8//
9// This file implements the ScheduleDAGMutation class, which represents
10// a target-specific mutation of the dependency graph for scheduling.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
15#define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
16
17namespace llvm {
18
19class ScheduleDAGInstrs;
20
21/// Mutate the DAG as a postpass after normal DAG building.
22class ScheduleDAGMutation {
23 virtual void anchor();
24
25public:
26 virtual ~ScheduleDAGMutation() = default;
27
28 virtual void apply(ScheduleDAGInstrs *DAG) = 0;
29};
30
31} // end namespace llvm
32
33#endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H