| Florian Hahn | b489e56 | 2017-06-22 09:39:36 +0000 | [diff] [blame] | 1 | //===- ARMMacroFusion.h - ARM Macro Fusion ------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | /// \file This file contains the ARM definition of the DAG scheduling mutation |
| 11 | /// to pair instructions back to back. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| Argyrios Kyrtzidis | c30340b | 2018-09-03 16:22:05 +0000 | [diff] [blame] | 15 | #ifndef LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H |
| 16 | #define LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H |
| 17 | |
| Florian Hahn | b489e56 | 2017-06-22 09:39:36 +0000 | [diff] [blame] | 18 | #include "llvm/CodeGen/MachineScheduler.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | /// Note that you have to add: |
| 23 | /// DAG.addMutation(createARMMacroFusionDAGMutation()); |
| 24 | /// to ARMPassConfig::createMachineScheduler() to have an effect. |
| 25 | std::unique_ptr<ScheduleDAGMutation> createARMMacroFusionDAGMutation(); |
| 26 | |
| 27 | } // llvm |
| Argyrios Kyrtzidis | c30340b | 2018-09-03 16:22:05 +0000 | [diff] [blame] | 28 | |
| 29 | #endif |