ScheduleDAGMutation.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- ScheduleDAGMutation.h - MachineInstr Scheduling ----------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file implements the ScheduleDAGMutation class, which represents
  15. // a target-specific mutation of the dependency graph for scheduling.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
  19. #define LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
  20. namespace llvm {
  21. class ScheduleDAGInstrs;
  22. /// Mutate the DAG as a postpass after normal DAG building.
  23. class ScheduleDAGMutation {
  24. virtual void anchor();
  25. public:
  26. virtual ~ScheduleDAGMutation() = default;
  27. virtual void apply(ScheduleDAGInstrs *DAG) = 0;
  28. };
  29. } // end namespace llvm
  30. #endif // LLVM_CODEGEN_SCHEDULEDAGMUTATION_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif