xref: /llvm-project/llvm/lib/Target/AArch64/AArch64MacroFusion.h (revision 627b5bda11a79785a21b1a50070415d4188aba6a)
194edf029SEvandro Menezes //===- AArch64MacroFusion.h - AArch64 Macro Fusion ------------------------===//
294edf029SEvandro Menezes //
32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
694edf029SEvandro Menezes //
794edf029SEvandro Menezes //===----------------------------------------------------------------------===//
894edf029SEvandro Menezes //
95f746c8eSFlorian Hahn /// \file This file contains the AArch64 definition of the DAG scheduling
105f746c8eSFlorian Hahn /// mutation to pair instructions back to back.
1194edf029SEvandro Menezes //
1294edf029SEvandro Menezes //===----------------------------------------------------------------------===//
1394edf029SEvandro Menezes 
14*627b5bdaSKazu Hirata #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H
15*627b5bdaSKazu Hirata #define LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H
16*627b5bdaSKazu Hirata 
1794edf029SEvandro Menezes #include "llvm/CodeGen/MachineScheduler.h"
1894edf029SEvandro Menezes 
1994edf029SEvandro Menezes namespace llvm {
2094edf029SEvandro Menezes 
2194edf029SEvandro Menezes /// Note that you have to add:
2294edf029SEvandro Menezes ///   DAG.addMutation(createAArch64MacroFusionDAGMutation());
2394edf029SEvandro Menezes /// to AArch64PassConfig::createMachineScheduler() to have an effect.
2494edf029SEvandro Menezes std::unique_ptr<ScheduleDAGMutation> createAArch64MacroFusionDAGMutation();
2594edf029SEvandro Menezes 
2694edf029SEvandro Menezes } // llvm
27*627b5bdaSKazu Hirata 
28*627b5bdaSKazu Hirata #endif // LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H
29