xref: /freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/X86MacroFusion.h (revision e25152834cdf3b353892835a4f3b157e066a8ed4)
10b57cec5SDimitry Andric //===- X86MacroFusion.h - X86 Macro Fusion --------------------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric /// \file This file contains the X86 definition of the DAG scheduling mutation
100b57cec5SDimitry Andric ///  to pair instructions back to back.
110b57cec5SDimitry Andric //
120b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H
150b57cec5SDimitry Andric #define LLVM_LIB_TARGET_X86_X86MACROFUSION_H
160b57cec5SDimitry Andric 
17*5ffd83dbSDimitry Andric #include <memory>
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric namespace llvm {
200b57cec5SDimitry Andric 
21*5ffd83dbSDimitry Andric class ScheduleDAGMutation;
22*5ffd83dbSDimitry Andric 
230b57cec5SDimitry Andric /// Note that you have to add:
240b57cec5SDimitry Andric ///   DAG.addMutation(createX86MacroFusionDAGMutation());
250b57cec5SDimitry Andric /// to X86PassConfig::createMachineScheduler() to have an effect.
260b57cec5SDimitry Andric std::unique_ptr<ScheduleDAGMutation>
270b57cec5SDimitry Andric createX86MacroFusionDAGMutation();
280b57cec5SDimitry Andric 
290b57cec5SDimitry Andric } // end namespace llvm
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric #endif
32