Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 1 | //===- X86MacroFusion.h - X86 Macro Fusion --------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Florian Hahn | 5f746c8 | 2017-06-19 12:53:31 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Florian Hahn | 5f746c8 | 2017-06-19 12:53:31 +0000 | [diff] [blame] | 10 | /// \file This file contains the X86 definition of the DAG scheduling mutation |
| 11 | /// to pair instructions back to back. |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 15 | #include "llvm/CodeGen/MachineScheduler.h" |
| 16 | |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 17 | namespace llvm { |
| 18 | |
| 19 | /// Note that you have to add: |
| 20 | /// DAG.addMutation(createX86MacroFusionDAGMutation()); |
| 21 | /// to X86PassConfig::createMachineScheduler() to have an effect. |
| 22 | std::unique_ptr<ScheduleDAGMutation> |
| 23 | createX86MacroFusionDAGMutation(); |
| 24 | |
| 25 | } // end namespace llvm |