1 //===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file implements the ScheduleDAGMutation class, which represents
10 // a target-specific mutation of the dependency graph for scheduling.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
15 #define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
19 class ScheduleDAGInstrs
;
21 /// Mutate the DAG as a postpass after normal DAG building.
22 class ScheduleDAGMutation
{
23 virtual void anchor();
26 virtual ~ScheduleDAGMutation() = default;
28 virtual void apply(ScheduleDAGInstrs
*DAG
) = 0;
31 } // end namespace llvm
33 #endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H