Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 1 | //===- X86MacroFusion.h - X86 Macro Fusion --------------------------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame^] | 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 |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
Florian Hahn | 5f746c8 | 2017-06-19 12:53:31 +0000 | [diff] [blame] | 9 | /// \file This file contains the X86 definition of the DAG scheduling mutation |
| 10 | /// to pair instructions back to back. |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Argyrios Kyrtzidis | c30340b | 2018-09-03 16:22:05 +0000 | [diff] [blame] | 14 | #ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H |
| 15 | #define LLVM_LIB_TARGET_X86_X86MACROFUSION_H |
| 16 | |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 17 | #include "llvm/CodeGen/MachineScheduler.h" |
| 18 | |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 19 | namespace llvm { |
| 20 | |
| 21 | /// Note that you have to add: |
| 22 | /// DAG.addMutation(createX86MacroFusionDAGMutation()); |
| 23 | /// to X86PassConfig::createMachineScheduler() to have an effect. |
| 24 | std::unique_ptr<ScheduleDAGMutation> |
| 25 | createX86MacroFusionDAGMutation(); |
| 26 | |
| 27 | } // end namespace llvm |
Argyrios Kyrtzidis | c30340b | 2018-09-03 16:22:05 +0000 | [diff] [blame] | 28 | |
| 29 | #endif |