2017-02-22 23:32:51 +01:00
|
|
|
//===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
|
2016-03-05 16:45:23 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the ScheduleDAGMutation class, which represents
|
|
|
|
// a target-specific mutation of the dependency graph for scheduling.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
|
|
|
|
#define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2017-02-22 23:32:51 +01:00
|
|
|
class ScheduleDAGInstrs;
|
2016-03-05 16:45:23 +01:00
|
|
|
|
2017-02-22 23:32:51 +01:00
|
|
|
/// Mutate the DAG as a postpass after normal DAG building.
|
|
|
|
class ScheduleDAGMutation {
|
|
|
|
virtual void anchor();
|
2016-03-05 16:45:23 +01:00
|
|
|
|
2017-02-22 23:32:51 +01:00
|
|
|
public:
|
|
|
|
virtual ~ScheduleDAGMutation() = default;
|
|
|
|
|
|
|
|
virtual void apply(ScheduleDAGInstrs *DAG) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
|