blob: 5c236427e0b8cb76c9194e80acc37a93f0ca299a [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the ScheduleDAGMutation class, which represents
11// a target-specific mutation of the dependency graph for scheduling.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
16#define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
17
18namespace llvm {
19
20class ScheduleDAGInstrs;
21
22/// Mutate the DAG as a postpass after normal DAG building.
23class ScheduleDAGMutation {
24 virtual void anchor();
25
26public:
27 virtual ~ScheduleDAGMutation() = default;
28
29 virtual void apply(ScheduleDAGInstrs *DAG) = 0;
30};
31
32} // end namespace llvm
33
34#endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H