1 //===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the ScheduleDAGMutation class, which represents
11 // a target-specific mutation of the dependency graph for scheduling.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
16 #define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
20 class ScheduleDAGInstrs;
22 /// Mutate the DAG as a postpass after normal DAG building.
23 class ScheduleDAGMutation {
24 virtual void anchor();
27 virtual ~ScheduleDAGMutation() = default;
29 virtual void apply(ScheduleDAGInstrs *DAG) = 0;
32 } // end namespace llvm
34 #endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H